From: Eric Sandeen Date: Wed, 17 Oct 2018 18:25:10 +0000 (-0500) Subject: libxfs: silence static warnings about platform_* functions X-Git-Tag: v4.19.0-rc1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1281240716f51b6a28ff944f366ed511736527c6;p=thirdparty%2Fxfsprogs-dev.git libxfs: silence static warnings about platform_* functions 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 Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/libfrog/linux.c b/libfrog/linux.c index fc9f3ac3b..b6c24879d 100644 --- a/libfrog/linux.c +++ b/libfrog/linux.c @@ -11,6 +11,7 @@ #include "libxfs_priv.h" #include "xfs_fs.h" +#include "init.h" extern char *progname; static int max_block_alignment; diff --git a/libxfs/init.h b/libxfs/init.h index e0b509113..2cda8950e 100644 --- a/libxfs/init.h +++ b/libxfs/init.h @@ -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 */