Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ia64: mm/contig: fix section mismatch warning/error

alloc_per_cpu_data() is called by find_memory(), which is marked as
__init. Therefore alloc_per_cpu_data() can also be marked as __init to
remedy this modpost problem.

WARNING: modpost: vmlinux.o: section mismatch in reference: alloc_per_cpu_data (section: .text) -> memblock_alloc_try_nid (section: .init.text)

Link: https://lkml.kernel.org/r/20230223034258.12917-1-rdunlap@infradead.org
Fixes: 4b9ddc7cf272 ("[IA64] Fix section mismatch in contig.c version of per_cpu_init()")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Randy Dunlap and committed by
Andrew Morton
58deeb4e eca7de7c

+1 -1
+1 -1
arch/ia64/mm/contig.c
··· 77 77 return __per_cpu_start + __per_cpu_offset[smp_processor_id()]; 78 78 } 79 79 80 - static inline void 80 + static inline __init void 81 81 alloc_per_cpu_data(void) 82 82 { 83 83 size_t size = PERCPU_PAGE_SIZE * num_possible_cpus();