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

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

diff -u --recursive --new-file v2.1.36/linux/drivers/block/ide.c linux/drivers/block/ide.c
@@ -294,7 +294,6 @@
 #include <linux/types.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
-#include <linux/delay.h>
 #include <linux/timer.h>
 #include <linux/mm.h>
 #include <linux/ioport.h>
@@ -307,6 +306,8 @@
 #include <linux/malloc.h>
 #include <linux/bios32.h>
 #include <linux/pci.h>
+#include <linux/delay.h>
+#include <linux/init.h>
 
 #include <asm/byteorder.h>
 #include <asm/irq.h>
@@ -2144,7 +2145,7 @@
  * stridx() returns the offset of c within s,
  * or -1 if c is '\0' or not found within s.
  */
-static int stridx (const char *s, char c)
+__initfunc(static int stridx (const char *s, char c))
 {
 	char *i = strchr(s, c);
 	return (i && c) ? i - s : -1;
@@ -2162,7 +2163,7 @@
  *     and base16 is allowed when prefixed with "0x".
  * 4. otherwise, zero is returned.
  */
-static int match_parm (char *s, const char *keywords[], int vals[], int max_vals)
+__initfunc(static int match_parm (char *s, const char *keywords[], int vals[], int max_vals))
 {
 	static const char *decimal = "0123456789";
 	static const char *hex = "0123456789abcdef";
@@ -2261,7 +2262,7 @@
  * "ide0=ali14xx"	: probe/support ali14xx chipsets (ALI M1439, M1443, M1445)
  * "ide0=umc8672"	: probe/support umc8672 chipsets
  */
-void ide_setup (char *s)
+__initfunc(void ide_setup (char *s))
 {
 	int i, vals[3];
 	ide_hwif_t *hwif;
@@ -2558,7 +2559,7 @@
  * ide_probe_pci() scans PCI for a specific vendor/device function,
  * and invokes the supplied init routine for each instance detected.
  */
-static void ide_probe_pci (unsigned short vendor, unsigned short device, ide_pci_init_proc_t *init, int func_adj)
+__initfunc(static void ide_probe_pci (unsigned short vendor, unsigned short device, ide_pci_init_proc_t *init, int func_adj))
 {
 	unsigned long flags;
 	unsigned index;
@@ -2581,7 +2582,7 @@
  * This routine should ideally be using pcibios_find_class() to find all
  * PCI IDE interfaces, but that function causes some systems to "go weird".
  */
-static void probe_for_hwifs (void)
+__initfunc(static void probe_for_hwifs (void))
 {
 #ifdef CONFIG_PCI
 	/*
@@ -2620,7 +2621,7 @@
 #endif
 }
 
-void ide_init_builtin_drivers (void)
+__initfunc(void ide_init_builtin_drivers (void))
 {
 	/*
 	 * Probe for special "known" interface chipsets
@@ -2889,7 +2890,7 @@
 /*
  * This is gets invoked once during initialization, to set *everything* up
  */
-int ide_init (void)
+__initfunc(int ide_init (void))
 {
 	init_ide_data ();
 
@@ -2904,7 +2905,7 @@
 char *options = NULL;
 MODULE_PARM(options,"s");
 
-static void parse_options (char *line)
+__initfunc(static void parse_options (char *line))
 {
 	char *next = line;
 

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