]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: fix section mismatch warning in setup_64.c:nearby_node
authorSam Ravnborg <sam@ravnborg.org>
Sun, 17 Feb 2008 12:22:46 +0000 (13:22 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 19 Feb 2008 15:18:29 +0000 (16:18 +0100)
nearby_node() were only used by __cpuinit amd_detect_cmp()
So annotating nearby_node() __cpuinit was the trivial fix.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/setup_64.c

index c0d8208af12a2d92e4e5bee3baf6b52dadb3efd6..ff9029d34133729631083aff28ff242f16fa90f9 100644 (file)
@@ -518,7 +518,7 @@ static void __cpuinit display_cacheinfo(struct cpuinfo_x86 *c)
 }
 
 #ifdef CONFIG_NUMA
-static int nearby_node(int apicid)
+static int __cpuinit nearby_node(int apicid)
 {
        int i, node;