[PATCH] hd: eliminate bad section references
authormaximilian attems <janitor@sternwelten.at>
Sat, 16 Apr 2005 22:25:52 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:25:52 +0000 (15:25 -0700)
Fix hd section references:
make parse_hd_setup() __init

Error: ./drivers/ide/legacy/hd.o .text refers to 00000943 R_386_PC32
.init.text

Signed-off-by: maximilian attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/legacy/hd.c

index c4090550ec130da0d93ff7e5b6b37ae2fcbdb5aa..e884cd4b22fdeaccab4310a801d1296ee3b73ff3 100644 (file)
@@ -851,7 +851,7 @@ Enomem:
        goto out;
 }
 
        goto out;
 }
 
-static int parse_hd_setup (char *line) {
+static int __init parse_hd_setup (char *line) {
        int ints[6];
 
        (void) get_options(line, ARRAY_SIZE(ints), ints);
        int ints[6];
 
        (void) get_options(line, ARRAY_SIZE(ints), ints);