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

s390/init: add missing __init annotations

Add __init to reserve_memory_end, reserve_oldmem and remove_oldmem.
Sometimes these functions are not inlined, and then the build
complains about section mismatch.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Ilya Leoshkevich and committed by
Vasily Gorbik
fcb2b70c b6186d7f

+3 -3
+3 -3
arch/s390/kernel/setup.c
··· 619 619 /* 620 620 * Make sure that the area behind memory_end is protected 621 621 */ 622 - static void reserve_memory_end(void) 622 + static void __init reserve_memory_end(void) 623 623 { 624 624 if (memory_end_set) 625 625 memblock_reserve(memory_end, ULONG_MAX); ··· 628 628 /* 629 629 * Make sure that oldmem, where the dump is stored, is protected 630 630 */ 631 - static void reserve_oldmem(void) 631 + static void __init reserve_oldmem(void) 632 632 { 633 633 #ifdef CONFIG_CRASH_DUMP 634 634 if (OLDMEM_BASE) ··· 640 640 /* 641 641 * Make sure that oldmem, where the dump is stored, is protected 642 642 */ 643 - static void remove_oldmem(void) 643 + static void __init remove_oldmem(void) 644 644 { 645 645 #ifdef CONFIG_CRASH_DUMP 646 646 if (OLDMEM_BASE)