[patch 139/198] hd: eliminate bad section references

From: akpm
Date: Tue Apr 12 2005 - 06:20:21 EST



From: maximilian attems <janitor@xxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

25-akpm/drivers/ide/legacy/hd.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/ide/legacy/hd.c~hd-eliminate-bad-section-references drivers/ide/legacy/hd.c
--- 25/drivers/ide/legacy/hd.c~hd-eliminate-bad-section-references 2005-04-12 03:21:36.912525344 -0700
+++ 25-akpm/drivers/ide/legacy/hd.c 2005-04-12 03:21:36.916524736 -0700
@@ -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);
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/