]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: silence static warnings about platform_* functions
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)
Add all platform_* prototypes to init.h and include it in linux.c
to silence sparse warnings about static functions.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/linux.c
libxfs/init.h

index fc9f3ac3b56e1f16eb0a0cf1f119ba8481782fe6..b6c24879da4985bea4eb70e448931e63f7a49314 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "libxfs_priv.h"
 #include "xfs_fs.h"
+#include "init.h"
 
 extern char *progname;
 static int max_block_alignment;
index e0b50911389cbb6a847e9dd5c2b01b1ee1fda9ac..2cda8950e5d76d2d1c6874d0a671dd2b96bd68ec 100644 (file)
@@ -19,5 +19,7 @@ extern char *platform_findblockpath (char *path);
 extern int platform_direct_blockdev (void);
 extern int platform_align_blockdev (void);
 extern unsigned long platform_physmem(void);   /* in kilobytes */
+extern void platform_findsizes(char *path, int fd, long long *sz, int *bsz);
+extern int platform_nproc(void);
 
 #endif /* LIBXFS_INIT_H */