From: Christoph Hellwig Date: Fri, 19 Dec 2025 05:41:46 +0000 (+0100) Subject: xfs: move the remaining content from xfs.h to xfs_platform.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19a46f12466993c1227276cd934a1eb8071a24cb;p=thirdparty%2Flinux.git xfs: move the remaining content from xfs.h to xfs_platform.h Move the global defines from xfs.h to xfs_platform.h to prepare for removing xfs.h. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Carlos Maiolino --- diff --git a/fs/xfs/xfs.h b/fs/xfs/xfs.h index b335a471c0887..3ec52f2ec4b20 100644 --- a/fs/xfs/xfs.h +++ b/fs/xfs/xfs.h @@ -6,23 +6,6 @@ #ifndef __XFS_H__ #define __XFS_H__ -#ifdef CONFIG_XFS_DEBUG -#define DEBUG 1 -#endif - -#ifdef CONFIG_XFS_DEBUG_EXPENSIVE -#define DEBUG_EXPENSIVE 1 -#endif - -#ifdef CONFIG_XFS_ASSERT_FATAL -#define XFS_ASSERT_FATAL 1 -#endif - -#ifdef CONFIG_XFS_WARN -#define XFS_WARN 1 -#endif - - #include "xfs_platform.h" #endif /* __XFS_H__ */ diff --git a/fs/xfs/xfs_platform.h b/fs/xfs/xfs_platform.h index 5223fe567ac16..c7b0135936462 100644 --- a/fs/xfs/xfs_platform.h +++ b/fs/xfs/xfs_platform.h @@ -57,6 +57,22 @@ #include #include +#ifdef CONFIG_XFS_DEBUG +#define DEBUG 1 +#endif + +#ifdef CONFIG_XFS_DEBUG_EXPENSIVE +#define DEBUG_EXPENSIVE 1 +#endif + +#ifdef CONFIG_XFS_ASSERT_FATAL +#define XFS_ASSERT_FATAL 1 +#endif + +#ifdef CONFIG_XFS_WARN +#define XFS_WARN 1 +#endif + /* * Kernel specific type declarations for XFS */