xfs: fix missing header includes
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 7 Nov 2019 01:19:33 +0000 (17:19 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 7 Nov 2019 21:00:53 +0000 (13:00 -0800)
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 <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_ag_resv.c
fs/xfs/libxfs/xfs_attr_remote.c
fs/xfs/libxfs/xfs_bit.c
fs/xfs/libxfs/xfs_sb.c
fs/xfs/scrub/health.c
fs/xfs/scrub/scrub.c
fs/xfs/xfs_acl.c
fs/xfs/xfs_discard.c
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_symlink.c
fs/xfs/xfs_xattr.c

index 87a9747f1d36b905755070d9cd85f15827d9afb7..fdfe6dc0d3079a7dcd4aa0d090e9a11677d0e3bf 100644 (file)
@@ -19,6 +19,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
index 3e39b7d40f256eba24fac163e497e17c99715d15..a6ef5df42669921dc89a200860cbd16e9b345c38 100644 (file)
@@ -19,6 +19,7 @@
 #include "xfs_trans.h"
 #include "xfs_bmap.h"
 #include "xfs_attr.h"
+#include "xfs_attr_remote.h"
 #include "xfs_trace.h"
 #include "xfs_error.h"
 
index 7071ff98fdbc8e569c4a274bd9c3ccbfa8a5ffc9..40ce5f3094d19d399bca5758b428177dcadd7824 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include "xfs.h"
 #include "xfs_log_format.h"
+#include "xfs_bit.h"
 
 /*
  * XFS bit manipulation routines, used in non-realtime code.
index ac6cdca63e15d6c576c09dce1febe379c5709c2d..0ac69751fe85a3f596ead8c8f591b88e5999aaf3 100644 (file)
@@ -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"
index b2f602811e9dfcdc577cbc737b473624a08fe282..83d27cdf579b8330f8fcf9a4f5b80c24693f4bbd 100644 (file)
@@ -11,6 +11,7 @@
 #include "xfs_sb.h"
 #include "xfs_health.h"
 #include "scrub/scrub.h"
+#include "scrub/health.h"
 
 /*
  * Scrub and In-Core Filesystem Health Assessments
index 15c8c5f3f688d1b3e905229ab1d13e8fc9bf8685..f1775bb193135e704108846406c9a29ef3a876b6 100644 (file)
@@ -16,6 +16,7 @@
 #include "xfs_qm.h"
 #include "xfs_errortag.h"
 #include "xfs_error.h"
+#include "xfs_scrub.h"
 #include "scrub/scrub.h"
 #include "scrub/common.h"
 #include "scrub/trace.h"
index 3f2292c7835ca88da22a52674db3aaf5f2f2bb89..91693fce34a8545718419f157e4729d9fb6ced1d 100644 (file)
@@ -13,8 +13,9 @@
 #include "xfs_attr.h"
 #include "xfs_trace.h"
 #include "xfs_error.h"
-#include <linux/posix_acl_xattr.h>
+#include "xfs_acl.h"
 
+#include <linux/posix_acl_xattr.h>
 
 /*
  * Locking scheme:
index 8ec7aab89044019c846f0082be199bf08f1bbd48..50966a9912cd847060c1fca1435f22446b525c56 100644 (file)
@@ -13,6 +13,7 @@
 #include "xfs_btree.h"
 #include "xfs_alloc_btree.h"
 #include "xfs_alloc.h"
+#include "xfs_discard.h"
 #include "xfs_error.h"
 #include "xfs_extent_busy.h"
 #include "xfs_trace.h"
index 800f07044636ef16fbefbdfa51287bf1ecbaa135..364961c23cd01144381568edfd6d9ee66b1ce132 100644 (file)
@@ -34,6 +34,7 @@
 #include "xfs_ag.h"
 #include "xfs_health.h"
 #include "xfs_reflink.h"
+#include "xfs_ioctl.h"
 
 #include <linux/mount.h>
 #include <linux/namei.h>
index ed66fd2de3273355fa5e74d6e953e72c0d827bdf..a25502bc2071c2b9d8b730259d81bac459bbb169 100644 (file)
@@ -17,6 +17,7 @@
 #include "xfs_bmap.h"
 #include "xfs_bmap_btree.h"
 #include "xfs_quota.h"
+#include "xfs_symlink.h"
 #include "xfs_trans_space.h"
 #include "xfs_trace.h"
 #include "xfs_trans.h"
index cb895b1df5e4256dc5ead4ef892d000afc83c8d5..383f0203d103744f79137ff1bba5edee193529ba 100644 (file)
@@ -11,6 +11,7 @@
 #include "xfs_da_format.h"
 #include "xfs_inode.h"
 #include "xfs_attr.h"
+#include "xfs_acl.h"
 
 #include <linux/posix_acl_xattr.h>
 #include <linux/xattr.h>