Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

maximilian attems and committed by
Linus Torvalds
fca44804 ffbe5523

+1 -1
+1 -1
drivers/ide/legacy/hd.c
··· 851 851 goto out; 852 852 } 853 853 854 - static int parse_hd_setup (char *line) { 854 + static int __init parse_hd_setup (char *line) { 855 855 int ints[6]; 856 856 857 857 (void) get_options(line, ARRAY_SIZE(ints), ints);