Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xfs: fix missing header includes

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>

+13 -1
+2
fs/xfs/libxfs/xfs_ag_resv.c
··· 19 19 #include "xfs_btree.h" 20 20 #include "xfs_refcount_btree.h" 21 21 #include "xfs_ialloc_btree.h" 22 + #include "xfs_sb.h" 23 + #include "xfs_ag_resv.h" 22 24 23 25 /* 24 26 * Per-AG Block Reservations
+1
fs/xfs/libxfs/xfs_attr_remote.c
··· 19 19 #include "xfs_trans.h" 20 20 #include "xfs_bmap.h" 21 21 #include "xfs_attr.h" 22 + #include "xfs_attr_remote.h" 22 23 #include "xfs_trace.h" 23 24 #include "xfs_error.h" 24 25
+1
fs/xfs/libxfs/xfs_bit.c
··· 5 5 */ 6 6 #include "xfs.h" 7 7 #include "xfs_log_format.h" 8 + #include "xfs_bit.h" 8 9 9 10 /* 10 11 * XFS bit manipulation routines, used in non-realtime code.
+1
fs/xfs/libxfs/xfs_sb.c
··· 10 10 #include "xfs_log_format.h" 11 11 #include "xfs_trans_resv.h" 12 12 #include "xfs_bit.h" 13 + #include "xfs_sb.h" 13 14 #include "xfs_mount.h" 14 15 #include "xfs_ialloc.h" 15 16 #include "xfs_alloc.h"
+1
fs/xfs/scrub/health.c
··· 11 11 #include "xfs_sb.h" 12 12 #include "xfs_health.h" 13 13 #include "scrub/scrub.h" 14 + #include "scrub/health.h" 14 15 15 16 /* 16 17 * Scrub and In-Core Filesystem Health Assessments
+1
fs/xfs/scrub/scrub.c
··· 16 16 #include "xfs_qm.h" 17 17 #include "xfs_errortag.h" 18 18 #include "xfs_error.h" 19 + #include "xfs_scrub.h" 19 20 #include "scrub/scrub.h" 20 21 #include "scrub/common.h" 21 22 #include "scrub/trace.h"
+2 -1
fs/xfs/xfs_acl.c
··· 13 13 #include "xfs_attr.h" 14 14 #include "xfs_trace.h" 15 15 #include "xfs_error.h" 16 - #include <linux/posix_acl_xattr.h> 16 + #include "xfs_acl.h" 17 17 18 + #include <linux/posix_acl_xattr.h> 18 19 19 20 /* 20 21 * Locking scheme:
+1
fs/xfs/xfs_discard.c
··· 13 13 #include "xfs_btree.h" 14 14 #include "xfs_alloc_btree.h" 15 15 #include "xfs_alloc.h" 16 + #include "xfs_discard.h" 16 17 #include "xfs_error.h" 17 18 #include "xfs_extent_busy.h" 18 19 #include "xfs_trace.h"
+1
fs/xfs/xfs_ioctl.c
··· 34 34 #include "xfs_ag.h" 35 35 #include "xfs_health.h" 36 36 #include "xfs_reflink.h" 37 + #include "xfs_ioctl.h" 37 38 38 39 #include <linux/mount.h> 39 40 #include <linux/namei.h>
+1
fs/xfs/xfs_symlink.c
··· 17 17 #include "xfs_bmap.h" 18 18 #include "xfs_bmap_btree.h" 19 19 #include "xfs_quota.h" 20 + #include "xfs_symlink.h" 20 21 #include "xfs_trans_space.h" 21 22 #include "xfs_trace.h" 22 23 #include "xfs_trans.h"
+1
fs/xfs/xfs_xattr.c
··· 11 11 #include "xfs_da_format.h" 12 12 #include "xfs_inode.h" 13 13 #include "xfs_attr.h" 14 + #include "xfs_acl.h" 14 15 15 16 #include <linux/posix_acl_xattr.h> 16 17 #include <linux/xattr.h>