[<prev] [next>] [day] [month] [year] [list]
Message-ID: <b9df5fa10901051829k31d61cafs1fa31178c371e0ce@mail.gmail.com>
Date: Tue, 6 Jan 2009 08:29:20 +0600
From: "Rakib Mullick" <rakib.mullick@...il.com>
To: "Linux-kernel Mailing List" <linux-kernel@...r.kernel.org>
Cc: "Ingo Molnar" <mingo@...e.hu>,
"Andrew Morton" <akpm@...ux-foundation.org>
Subject: [PATCH] init: Fix section mismatch on do_mounts_md.c
From: Rakib Mullick <rakib.mullick@...il.com>
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 <rakib.mullick@...il.com>
--- 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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists