From: Christoph Hellwig Date: Fri, 19 Dec 2025 05:41:45 +0000 (+0100) Subject: xfs: include global headers first in xfs_platform.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=501a5161d2c3c3e6d6cf520446e51dfc86f06d8e;p=thirdparty%2Flinux.git xfs: include global headers first in xfs_platform.h Ensure we have all kernel headers included by the time we do our own thing, just like the rest of the tree. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Carlos Maiolino --- diff --git a/fs/xfs/xfs_platform.h b/fs/xfs/xfs_platform.h index ec8cd71fc868e..5223fe567ac16 100644 --- a/fs/xfs/xfs_platform.h +++ b/fs/xfs/xfs_platform.h @@ -8,19 +8,6 @@ #include #include - -/* - * Kernel specific type declarations for XFS - */ - -typedef __s64 xfs_off_t; /* type */ -typedef unsigned long long xfs_ino_t; /* type */ -typedef __s64 xfs_daddr_t; /* type */ -typedef __u32 xfs_dev_t; -typedef __u32 xfs_nlink_t; - -#include "xfs_types.h" - #include #include #include @@ -63,7 +50,6 @@ typedef __u32 xfs_nlink_t; #include #include #include - #include #include #include @@ -71,6 +57,16 @@ typedef __u32 xfs_nlink_t; #include #include +/* + * Kernel specific type declarations for XFS + */ +typedef __s64 xfs_off_t; /* type */ +typedef unsigned long long xfs_ino_t; /* type */ +typedef __s64 xfs_daddr_t; /* type */ +typedef __u32 xfs_dev_t; +typedef __u32 xfs_nlink_t; + +#include "xfs_types.h" #include "xfs_fs.h" #include "xfs_stats.h" #include "xfs_sysctl.h"