diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-02-17 07:22:46 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-02-19 10:18:29 -0500 |
commit | 08acb672624ece2d9234817570a0b3332cc8dae3 (patch) | |
tree | 3bb7fa23ad0550ce5f2a2d1cae1a2bffa0704d3d | |
parent | a062bae9c443a8c0ab17f231eb83690dfb897524 (diff) |
x86: fix section mismatch warning in setup_64.c:nearby_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: 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>
-rw-r--r-- | 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 c0d8208af12a..ff9029d34133 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) | |||
518 | } | 518 | } |
519 | 519 | ||
520 | #ifdef CONFIG_NUMA | 520 | #ifdef CONFIG_NUMA |
521 | static int nearby_node(int apicid) | 521 | static int __cpuinit nearby_node(int apicid) |
522 | { | 522 | { |
523 | int i, node; | 523 | int i, node; |
524 | 524 | ||