diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-07-21 07:37:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-21 20:49:15 -0400 |
commit | 61d488da9bad8d1511d18291006bd2dd728f173d (patch) | |
tree | 8f45aeab3d10f37148b034f9ea617edde6087f1f /arch/i386/kernel/cpu | |
parent | 7671988b9cd31daf53fd38f8e75c8b881324842b (diff) |
i386: intel_cacheinfo.c:find_num_cache_leaves() should be __cpuinit
WARNING: arch/i386/kernel/built-in.o(.text+0xb6a7): Section mismatch: reference to .init.text:find_num_cache_leaves (between 'init_intel_cacheinfo' and 'cache_shared_cpu_map_setup')
It could be __init_refok, but gcc >= 4.0 anyway inlines it into the
__cpuinit init_intel_cacheinfo(), and IMHO it's too small for "noinline
__init".
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/i386/kernel/cpu')
-rw-r--r-- | arch/i386/kernel/cpu/intel_cacheinfo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/intel_cacheinfo.c b/arch/i386/kernel/cpu/intel_cacheinfo.c index e5be819492ef..25b4b7d89cae 100644 --- a/arch/i386/kernel/cpu/intel_cacheinfo.c +++ b/arch/i386/kernel/cpu/intel_cacheinfo.c | |||
@@ -239,8 +239,7 @@ static int __cpuinit cpuid4_cache_lookup(int index, struct _cpuid4_info *this_le | |||
239 | return 0; | 239 | return 0; |
240 | } | 240 | } |
241 | 241 | ||
242 | /* will only be called once; __init is safe here */ | 242 | static int __cpuinit find_num_cache_leaves(void) |
243 | static int __init find_num_cache_leaves(void) | ||
244 | { | 243 | { |
245 | unsigned int eax, ebx, ecx, edx; | 244 | unsigned int eax, ebx, ecx, edx; |
246 | union _cpuid4_leaf_eax cache_eax; | 245 | union _cpuid4_leaf_eax cache_eax; |