[PATCH 09/27] x86: fix section mismatch warning in setup_64.c:nearby_node

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>, Andrew Morton <akpm@...>
Cc: Sam Ravnborg <sam@...>, Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>, H. Peter Anvin <hpa@...>
Date: Sunday, February 17, 2008 - 8:22 am

Fix following warnings:
WARNING: vmlinux.o(.text+0x1baa2): Section mismatch in reference from the function nearby_node() to the variable .cpuinit.data:apicid_to_node
WARNING: vmlinux.o(.text+0x1bace): Section mismatch in reference from the function nearby_node() to the variable .cpuinit.data:apicid_to_node

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: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: H. Peter Anvin <hpa@zytor.com>
---
 arch/x86/kernel/setup_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c
index c0d8208..ff9029d 100644
--- a/arch/x86/kernel/setup_64.c
+++ b/arch/x86/kernel/setup_64.c
@@ -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;
 
-- 
1.5.4.rc3.14.g44397

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/27] fix section mismatches, Sam Ravnborg, (Sun Feb 17, 8:12 am)
[PATCH 17/27] acer-wmi: fix section mismatch warnings, Sam Ravnborg, (Sun Feb 17, 8:22 am)
Re: [PATCH 17/27] acer-wmi: fix section mismatch warnings, Carlos Corbacho, (Sun Feb 17, 9:03 am)
Re: [PATCH 17/27] acer-wmi: fix section mismatch warnings, Sam Ravnborg, (Sun Feb 17, 11:05 am)
[PATCH 16/27] scsi: fix section mismatch in aic94xx, Sam Ravnborg, (Sun Feb 17, 8:22 am)
[PATCH 15/27] cpufreq: fix section mismatch warnings, Sam Ravnborg, (Sun Feb 17, 8:22 am)
[PATCH 24/27] pcmcia: annotate cb_alloc with __ref, Sam Ravnborg, (Sun Feb 17, 8:23 am)
[PATCH 14/27] hwmon: fix section mismatch in coretemp, Sam Ravnborg, (Sun Feb 17, 8:22 am)
Re: [PATCH 14/27] hwmon: fix section mismatch in coretemp, Mark M. Hoffman, (Sun Feb 17, 1:07 pm)
[PATCH 09/27] x86: fix section mismatch warning in setup_64...., Sam Ravnborg, (Sun Feb 17, 8:22 am)
[PATCH 19/27] tpm: fix section mismatch warning, Sam Ravnborg, (Sun Feb 17, 8:22 am)