kernel-fxtec-pro1x/arch/ia64/mm
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
..
contig.c [IA64] Fix section mismatch in contig.c version of per_cpu_init() 2007-11-06 15:14:45 -08:00
discontig.c Add vmcoreinfo 2007-10-17 08:42:54 -07:00
extable.c
fault.c pid namespaces: define is_global_init() and is_container_init() 2007-10-19 11:53:37 -07:00
hugetlbpage.c Do not depend on MAX_ORDER when grouping pages by mobility 2007-10-16 09:43:00 -07:00
init.c [IA64] ia64/mm/init.c: fix section mismatches 2007-10-29 10:42:35 -07:00
ioremap.c [IA64] make ioremap avoid unsupported attributes 2007-03-30 09:37:41 -07:00
Makefile
numa.c [PATCH] hot-add-mem x86_64: memory_add_physaddr_to_nid node fixup 2006-10-01 00:39:18 -07:00
tlb.c [IA64] silence GCC ia64 unused variable warnings 2007-07-11 11:40:42 -07:00