Skip to content

Commit fcb2b70

Browse files
iii-iVasily Gorbik
authored andcommitted
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 <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent b6186d7 commit fcb2b70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/s390/kernel/setup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ static struct notifier_block kdump_mem_nb = {
619619
/*
620620
* Make sure that the area behind memory_end is protected
621621
*/
622-
static void reserve_memory_end(void)
622+
static void __init reserve_memory_end(void)
623623
{
624624
if (memory_end_set)
625625
memblock_reserve(memory_end, ULONG_MAX);
@@ -628,7 +628,7 @@ static void reserve_memory_end(void)
628628
/*
629629
* Make sure that oldmem, where the dump is stored, is protected
630630
*/
631-
static void reserve_oldmem(void)
631+
static void __init reserve_oldmem(void)
632632
{
633633
#ifdef CONFIG_CRASH_DUMP
634634
if (OLDMEM_BASE)
@@ -640,7 +640,7 @@ static void reserve_oldmem(void)
640640
/*
641641
* Make sure that oldmem, where the dump is stored, is protected
642642
*/
643-
static void remove_oldmem(void)
643+
static void __init remove_oldmem(void)
644644
{
645645
#ifdef CONFIG_CRASH_DUMP
646646
if (OLDMEM_BASE)

0 commit comments

Comments
 (0)