From: Rakib Mullick <[email protected]>
This patch fixes the following warnings. autodetect_raid(void)
function lacks __init since
it refers to __initdata raid_autopart.
LD init/mounts.o
WARNING: init/mounts.o(.text+0x20c): Section mismatch in reference
from the function autodetect_raid() to the variable
.init.data:raid_autopart
The function autodetect_raid() references
the variable __initdata raid_autopart.
This is often because autodetect_raid lacks a __initdata
annotation or the annotation of raid_autopart is wrong.
LD init/built-in.o
WARNING: init/built-in.o(.text+0x434): Section mismatch in reference
from the function autodetect_raid() to the variable
.init.data:raid_autopart
The function autodetect_raid() references
the variable __initdata raid_autopart.
This is often because autodetect_raid lacks a __initdata
annotation or the annotation of raid_autopart is wrong.
Signed-off-by: Rakib Mullick <[email protected]>
--- linux-2.6-orig/init/do_mounts_md.c 2008-12-30 00:18:29.000000000 +0600
+++ linux-2.6/init/do_mounts_md.c 2009-01-05 20:09:32.000000000 +0600
@@ -271,7 +271,7 @@ static int __init raid_setup(char *str)
__setup("raid=", raid_setup);
__setup("md=", md_setup);
-static void autodetect_raid(void)
+static void __init autodetect_raid(void)
{
int fd;