From 19a46f12466993c1227276cd934a1eb8071a24cb Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 19 Dec 2025 06:41:46 +0100 Subject: [PATCH] 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 --- fs/xfs/xfs.h | 17 ----------------- fs/xfs/xfs_platform.h | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 17 deletions(-) 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 */ -- 2.47.3