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

Next file: linux/drivers/block/ide-disk.c
Previous file: linux/drivers/block/genhd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/drivers/block/hd.c linux/drivers/block/hd.c
@@ -39,6 +39,7 @@
 #include <linux/string.h>
 #include <linux/ioport.h>
 #include <linux/mc146818rtc.h> /* CMOS defines */
+#include <linux/init.h>
 
 #define REALLY_SLOW_IO
 #include <asm/system.h>
@@ -110,7 +111,7 @@
 }
 #endif
 
-void hd_setup(char *str, int *ints)
+__initfunc(void hd_setup(char *str, int *ints))
 {
 	int hdind = 0;
 
@@ -792,7 +793,7 @@
 	block_fsync		/* fsync */
 };
 
-int hd_init(void)
+__initfunc(int hd_init(void))
 {
 	if (register_blkdev(MAJOR_NR,"hd",&hd_fops)) {
 		printk("hd: unable to get major %d for harddisk\n",MAJOR_NR);

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