diff options
| author | Christoph Hellwig <hch@lst.de> | 2025-12-19 06:41:46 +0100 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-01-21 12:57:16 +0100 |
| commit | 19a46f12466993c1227276cd934a1eb8071a24cb (patch) | |
| tree | 7d64c060e72d598eafbb4d68be076a12063cc0c9 | |
| parent | 501a5161d2c3c3e6d6cf520446e51dfc86f06d8e (diff) | |
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 <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
| -rw-r--r-- | fs/xfs/xfs.h | 17 | ||||
| -rw-r--r-- | 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 b335a471c088..3ec52f2ec4b2 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 5223fe567ac1..c7b013593646 100644 --- a/fs/xfs/xfs_platform.h +++ b/fs/xfs/xfs_platform.h @@ -57,6 +57,22 @@ #include <asm/byteorder.h> #include <linux/unaligned.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 + /* * Kernel specific type declarations for XFS */ |
