diff mbox series

[3/7] misc: add missing includes

Message ID 166795951686.3761353.9298355629581823694.stgit@magnolia (mailing list archive)
State Superseded
Headers show
Series xfsprogs: random fixes for 6.0 | expand

Commit Message

Darrick J. Wong Nov. 9, 2022, 2:05 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Add missing #include directives so that the compiler can typecheck
functions against their declarations.  IOWs, -Wmissing-declarations
found some things.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 libfrog/linux.c |    1 +
 libxfs/util.c   |    1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libfrog/linux.c b/libfrog/linux.c
index a45d99ab5b..0d9bd355fc 100644
--- a/libfrog/linux.c
+++ b/libfrog/linux.c
@@ -12,6 +12,7 @@ 
 #include "platform_defs.h"
 #include "xfs.h"
 #include "init.h"
+#include "libfrog/platform.h"
 
 extern char *progname;
 static int max_block_alignment;
diff --git a/libxfs/util.c b/libxfs/util.c
index a41d50c4a7..6525f63de0 100644
--- a/libxfs/util.c
+++ b/libxfs/util.c
@@ -28,6 +28,7 @@ 
 #include "xfs_da_format.h"
 #include "xfs_da_btree.h"
 #include "xfs_dir2_priv.h"
+#include "xfs_health.h"
 
 /*
  * Calculate the worst case log unit reservation for a given superblock