]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: include headers for extern variables
authorEric Sandeen <sandeen@redhat.com>
Wed, 17 Oct 2018 18:25:10 +0000 (13:25 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 17 Oct 2018 18:25:10 +0000 (13:25 -0500)
Include headers which export functions for their matching C files so that
they don't appear to be static to the sparse checker.

Fixes sparse warnings about this.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/crc.c
db/fuzz.c
db/hash.c
db/logformat.c
db/symlink.c
db/text.c
libfrog/crc32.c

index b6612a514ea136774e952da6f5f904bd49122b6a..95161c6dfe6a557afd790ab86f6956de8f32c6ac 100644 (file)
--- a/db/crc.c
+++ b/db/crc.c
@@ -17,6 +17,7 @@
 #include "output.h"
 #include "bit.h"
 #include "print.h"
+#include "crc.h"
 
 static int crc_f(int argc, char **argv);
 static void crc_help(void);
index 5d5d54f71418ef1d10adcafaf74e628fcb001f5f..65157bd08d4937ad44d7ee256ea75a93ede0504a 100644 (file)
--- a/db/fuzz.c
+++ b/db/fuzz.c
@@ -21,6 +21,7 @@
 #include "print.h"
 #include "write.h"
 #include "malloc.h"
+#include "fuzz.h"
 
 static int     fuzz_f(int argc, char **argv);
 static void     fuzz_help(void);
index bda331662ed9af5ae9fda164f8fef41a4936da90..68c53e7f9bcdd1814bb8f4d0a91644140c9d860f 100644 (file)
--- a/db/hash.c
+++ b/db/hash.c
@@ -10,6 +10,7 @@
 #include "type.h"
 #include "io.h"
 #include "output.h"
+#include "hash.h"
 
 static int hash_f(int argc, char **argv);
 static void hash_help(void);
index 42ce2450be5880145a1398e9da1c7e99365c1328..3374c29b2aa7cd10e67ff3f9bca124a78fbea918 100644 (file)
@@ -9,6 +9,7 @@
 #include "init.h"
 #include "output.h"
 #include "libxlog.h"
+#include "logformat.h"
 
 #define MAX_LSUNIT     256 * 1024      /* max log buf. size */
 
index ebf66373d43bad717d11eeef2fc350a772c555a5..752cae4cf3001bcd21450fce2b5c5d28ef640c81 100644 (file)
@@ -11,7 +11,7 @@
 #include "field.h"
 #include "bit.h"
 #include "init.h"
-
+#include "symlink.h"
 
 /*
  * XXX: no idea how to handle multiple contiguous block symlinks here.
index 3a279d1864030cb61ed5de8cb6549d67ea298ce3..adf33a77dbf83529f57f4f7dedc56df8bf5fdc7d 100644 (file)
--- a/db/text.c
+++ b/db/text.c
@@ -17,6 +17,7 @@
 #include "io.h"
 #include "output.h"
 #include "init.h"
+#include "text.h"
 
 static void     print_rawtext(void *data, int len);
 
index 220b33bf113a76881ea1e14f28b2a30f39a303c8..9e074ad41c5d18dde91125006ad586e67405fc3b 100644 (file)
@@ -36,6 +36,7 @@
 /* For endian conversion routines */
 #include "xfs_arch.h"
 #include "crc32defs.h"
+#include "crc32c.h"
 
 /* types specifc to this file */
 typedef __u8   u8;