[PATCH] Warning in compiling init/main.c: implicit declaration of function `md_run_setup'

From: Rasmus Andersen (rasmus@diku.dk)
Date: Mon Jul 24 2000 - 17:01:08 EST


Hi.

I get a warning when I compile init/main.c with CONFIG_BLK_DEV_MD=y:

init/main.c: In function `do_basic_setup':
init/main.c:740: warning: implicit declaration of function `md_run_setup'

I think the following patch fixes this the right way, but if I thought
wrong please whack my head :)

--- main.c.old Wed Jul 19 12:36:01 2000
+++ main.c Mon Jul 24 23:46:21 2000
@@ -105,6 +105,10 @@
 extern void tc_init(void);
 #endif
 
+#ifdef CONFIG_BLK_DEV_MD
+extern void md_run_setup(void);
+#endif
+
 extern void ecard_init(void);
 
 #if defined(CONFIG_SYSVIPC)

        Rasmus(rasmus@diku.dk)

"God prevent we should ever be twenty years without a revolution."
  -- Thomas Jefferson

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:17 EST