From: maximilian attems Date: Sat, 16 Apr 2005 22:25:52 +0000 (-0700) Subject: [PATCH] hd: eliminate bad section references X-Git-Tag: v2.6.12-rc3~106 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fca44804508d544b0b9d9d85279e5eea778e4e32;p=linux-2.6 [PATCH] hd: eliminate bad section references 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/legacy/hd.c b/drivers/ide/legacy/hd.c index c4090550ec..e884cd4b22 100644 --- a/drivers/ide/legacy/hd.c +++ b/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);