From: maximilian attems Date: Sat, 16 Apr 2005 22:25:52 +0000 (-0700) Subject: [PATCH] hd: eliminate bad section references X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fca44804508d544b0b9d9d85279e5eea778e4e32;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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 c4090550ec13..e884cd4b22fd 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);