projects/linux·commit fca44804

[PATCH] hd: eliminate bad section references

fca44804 · maximilian attems <[email protected]> · 2005-04-16 15:25:52 -07:00

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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
fca44804508d544b0b9d9d85279e5eea778e4e32
Parents
ffbe5523

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/ide/legacy/hd.cmodified+1−1View file

drivers/ide/legacy/hd.c

View file
diff --git a/drivers/ide/legacy/hd.c b/drivers/ide/legacy/hd.c
index c409055..e884cd4 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);