From: Darrick J. Wong Date: Wed, 22 Jan 2020 16:29:40 +0000 (-0500) Subject: xfs: fix missing header includes X-Git-Tag: v5.5.0-rc0~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43be641ec049d4ff2a7f7b7b49f880f27bc7340b;p=thirdparty%2Fxfsprogs-dev.git xfs: fix missing header includes Source kernel commit: 5f213ddbcbe86577f517437ef0ecb4ef3bcc3434 Some of the xfs source files are missing header includes, so add them back. Sparse complains about non-static functions that don't have a forward declaration anywhere. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_ag_resv.c b/libxfs/xfs_ag_resv.c index 1328e5de1..1fe13bf44 100644 --- a/libxfs/xfs_ag_resv.c +++ b/libxfs/xfs_ag_resv.c @@ -15,6 +15,8 @@ #include "xfs_btree.h" #include "xfs_refcount_btree.h" #include "xfs_ialloc_btree.h" +#include "xfs_sb.h" +#include "xfs_ag_resv.h" /* * Per-AG Block Reservations diff --git a/libxfs/xfs_attr_remote.c b/libxfs/xfs_attr_remote.c index 7234f86c1..958f8f616 100644 --- a/libxfs/xfs_attr_remote.c +++ b/libxfs/xfs_attr_remote.c @@ -18,6 +18,8 @@ #include "xfs_inode.h" #include "xfs_trans.h" #include "xfs_bmap.h" +#include "xfs_attr.h" +#include "xfs_attr_remote.h" #include "xfs_trace.h" #define ATTR_RMTVALUE_MAPSIZE 1 /* # of map entries at once */ diff --git a/libxfs/xfs_bit.c b/libxfs/xfs_bit.c index 6a76a5ad0..3f97fa3e7 100644 --- a/libxfs/xfs_bit.c +++ b/libxfs/xfs_bit.c @@ -5,6 +5,7 @@ */ #include "libxfs_priv.h" #include "xfs_log_format.h" +#include "xfs_bit.h" /* * XFS bit manipulation routines, used in non-realtime code. diff --git a/libxfs/xfs_sb.c b/libxfs/xfs_sb.c index 583d29aab..4f750d19d 100644 --- a/libxfs/xfs_sb.c +++ b/libxfs/xfs_sb.c @@ -10,6 +10,7 @@ #include "xfs_log_format.h" #include "xfs_trans_resv.h" #include "xfs_bit.h" +#include "xfs_sb.h" #include "xfs_mount.h" #include "xfs_ialloc.h" #include "xfs_alloc.h"