From: Eric Sandeen Date: Thu, 3 Dec 2009 19:21:51 +0000 (-0600) Subject: xfs_io: enable missing functions X-Git-Tag: v3.1.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95182f57e1cd747b26c5c45782f69acde8e37d82;p=thirdparty%2Fxfsprogs-dev.git xfs_io: enable missing functions madvise and mincore were never hooked up to init_commands(). Further, there is no HAVE_INJECT test in the configure scripts, so just remove that test (and keep the existing unconditional inject_init() prototype. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig --- diff --git a/io/init.c b/io/init.c index 6539a559d..f8fc25d86 100644 --- a/io/init.c +++ b/io/init.c @@ -64,6 +64,8 @@ init_commands(void) help_init(); imap_init(); inject_init(); + madvise_init(); + mincore_init(); mmap_init(); open_init(); parent_init(); diff --git a/io/io.h b/io/io.h index 43754cac8..630897d44 100644 --- a/io/io.h +++ b/io/io.h @@ -112,12 +112,6 @@ extern void fadvise_init(void); #define fadvise_init() do { } while (0) #endif -#ifdef HAVE_INJECT -extern void inject_init(void); -#else -#define inject_init() do { } while (0) -#endif - #ifdef HAVE_RESBLKS extern void resblks_init(void); #else