patch-2.1.37 linux/drivers/block/md.c

Next file: linux/drivers/block/ps2esdi.c
Previous file: linux/drivers/block/loop.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/drivers/block/md.c linux/drivers/block/md.c
@@ -35,6 +35,7 @@
 #include <linux/kerneld.h>
 #endif
 #include <linux/errno.h>
+#include <linux/init.h>
 
 #define MAJOR_NR MD_MAJOR
 #define MD_DRIVER
@@ -546,7 +547,7 @@
 void raid1_init (void);
 void raid5_init (void);
 
-int md_init (void)
+__initfunc(int md_init (void))
 {
   printk ("md driver %s MAX_MD_DEV=%d, MAX_REAL=%d\n", MD_VERSION, MAX_MD_DEV, MAX_REAL);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov