Skip to contentSkip to conversation

hd: eliminate bad section references

PATCH In review [email protected] 1 participant 1 message Apr 12, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 139/198 hd: eliminate bad section references

From: maximilian attems <[email protected]>

Fix hd section references:
make parse_hd_setup() __init

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

---

 25-akpm/drivers/ide/legacy/hd.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/ide/legacy/hd.c renamed from drivers/ide/legacy/hd.c~hd-eliminate-bad-section-references +1 -1
diff -puN drivers/ide/legacy/hd.c~hd-eliminate-bad-section-references drivers/ide/legacy/hd.c
@@ -851,7 +851,7 @@ Enomem:
 	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);

_