i386: intel_cacheinfo.c:find_num_cache_leaves() should be __cpuinit
authorAdrian Bunk <bunk@stusta.de>
Sat, 21 Jul 2007 11:37:39 +0000 (04:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 00:49:15 +0000 (17:49 -0700)
commit61d488da9bad8d1511d18291006bd2dd728f173d
tree8f45aeab3d10f37148b034f9ea617edde6087f1f
parent7671988b9cd31daf53fd38f8e75c8b881324842b
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>
arch/i386/kernel/cpu/intel_cacheinfo.c