]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: fix the errno sign for the xfs_errortag_{add,clearall} stubs
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Jan 2026 05:19:16 +0000 (06:19 +0100)
committerCarlos Maiolino <cem@kernel.org>
Fri, 30 Jan 2026 09:41:42 +0000 (10:41 +0100)
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>
fs/xfs/xfs_error.h

index fe6a71bbe9cde9cb30be1a974b03f7d67f9ef68d..3a78c8dfaec83a90c53e90f505140bd549269c8c 100644 (file)
@@ -60,8 +60,8 @@ int xfs_errortag_clearall(struct xfs_mount *mp);
 #define xfs_errortag_del(mp)
 #define XFS_TEST_ERROR(mp, tag)                        (false)
 #define XFS_ERRORTAG_DELAY(mp, tag)            ((void)0)
-#define xfs_errortag_add(mp, tag)              (ENOSYS)
-#define xfs_errortag_clearall(mp)              (ENOSYS)
+#define xfs_errortag_add(mp, tag)              (-ENOSYS)
+#define xfs_errortag_clearall(mp)              (-ENOSYS)
 #endif /* DEBUG */
 
 /*