linux/arch/ia64
Tony Luck 4b9ddc7cf2 [IA64] Fix section mismatch in contig.c version of per_cpu_init()
There is a section mismatch when building CONFIG_FLATMEM=y kernels
that also have CONFIG_HOTPLUG_CPU=y

WARNING: vmlinux.o(.text+0x5a902): Section mismatch: reference to \
.init.text:__alloc_bootmem (between 'per_cpu_init' and 'count_pages')

The issue occurs because per_cpu_init() in mm/contig.c is
marked __cpuinit (which is #define'd to nothing on a hot
plug cpu configuration) call __alloc_bootmem() (which is
an __init function).  The usage is actually safe because
the __alloc_bootmem() is inside an "if (first_time)" test
so that the call is only made while it is still legal to
do so.

But the warning is irritating.  Move the allocation to
find_memory().

Signed-off-by: Tony Luck <tony.luck@intel.com>
2007-11-06 15:14:45 -08:00
..
configs [IA64] update sn2 defconfig to 64kb pages 2007-10-29 11:32:42 -07:00
dig
hp [IA64] fix number of bytes zeroed by sys_fw_init() in arch/ia64/hp/sim/boot/fw-emu.c 2007-11-06 13:27:18 -08:00
ia32 [IA64] Remove duplicate includes from ia32priv.h 2007-11-06 13:30:47 -08:00
kernel [IA64] Wrong args to memset in efi_gettimeofday() 2007-11-06 13:40:39 -08:00
lib missing exports of csum_... 2007-07-17 11:01:07 -07:00
mm [IA64] Fix section mismatch in contig.c version of per_cpu_init() 2007-11-06 15:14:45 -08:00
oprofile Combine instrumentation menus in kernel/Kconfig.instrumentation 2007-10-19 11:53:54 -07:00
pci [IA64] Nail two more simple section mismatch errors 2007-07-25 13:08:41 -07:00
scripts [IA64] check-segrel.lds vs --build-id 2007-10-29 10:53:04 -07:00
sn [IA64] arch/ia64/sn/kernel/mca.c: undo lock when sn_oemdata can't be extended 2007-10-29 14:32:30 -07:00
defconfig [IA64] Update arch/ia64/configs/* s/SLAB/SLUB/ 2007-08-13 14:54:34 -07:00
install.sh
Kconfig typo fixes 2007-10-20 01:34:40 +02:00
Kconfig.debug
Makefile kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP 2007-10-15 22:17:25 +02:00
module.lds