Skip to content

Commit 9a228d1

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
xfs: fix the errno sign for the xfs_errortag_{add,clearall} stubs
All errno values should be negative in the kernel. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent 44b9553 commit 9a228d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/xfs/xfs_error.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ int xfs_errortag_clearall(struct xfs_mount *mp);
6060
#define xfs_errortag_del(mp)
6161
#define XFS_TEST_ERROR(mp, tag) (false)
6262
#define XFS_ERRORTAG_DELAY(mp, tag) ((void)0)
63-
#define xfs_errortag_add(mp, tag) (ENOSYS)
64-
#define xfs_errortag_clearall(mp) (ENOSYS)
63+
#define xfs_errortag_add(mp, tag) (-ENOSYS)
64+
#define xfs_errortag_clearall(mp) (-ENOSYS)
6565
#endif /* DEBUG */
6666

6767
/*

0 commit comments

Comments
 (0)