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

alpha: fix two section mismatch warnings

Fix the following section mismatch warnings:

WARNING: o-alpha/vmlinux.o(.text+0x1a4d4): Section mismatch: reference to .init.text:free_area_init (between 'paging_init' and 'srm_paging_stop')
WARNING: o-alpha/vmlinux.o(.text+0x1a4dc): Section mismatch: reference to .init.text:free_area_init (between 'paging_init' and 'srm_paging_stop')

One instance of paging_init() was declared __init but not the other one -
used by defconfig. Fixed by declaring the second instance ___init too.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Sam Ravnborg and committed by
Linus Torvalds
64d158bc 4a4b8831

+1 -2
+1 -2
arch/alpha/mm/init.c
··· 267 267 /* 268 268 * paging_init() sets up the memory map. 269 269 */ 270 - void 271 - paging_init(void) 270 + void __init paging_init(void) 272 271 { 273 272 unsigned long zones_size[MAX_NR_ZONES] = {0, }; 274 273 unsigned long dma_pfn, high_pfn;