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>
#include "libxfs_priv.h"
#include "xfs_fs.h"
+#include "init.h"
extern char *progname;
static int max_block_alignment;
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 */