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>
This commit is contained in:
Christoph Hellwig 2025-12-19 06:41:46 +01:00 committed by Carlos Maiolino
parent 501a5161d2
commit 19a46f1246
2 changed files with 16 additions and 17 deletions

View file

@ -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__ */

View file

@ -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
*/