Skip to content

Commit 43d750a

Browse files
iii-igregkh
authored andcommitted
s390/init: add missing __init annotations
[ Upstream commit fcb2b70 ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent fdd6031 commit 43d750a

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
@@ -627,7 +627,7 @@ static struct notifier_block kdump_mem_nb = {
627627
/*
628628
* Make sure that the area behind memory_end is protected
629629
*/
630-
static void reserve_memory_end(void)
630+
static void __init reserve_memory_end(void)
631631
{
632632
if (memory_end_set)
633633
memblock_reserve(memory_end, ULONG_MAX);
@@ -636,7 +636,7 @@ static void reserve_memory_end(void)
636636
/*
637637
* Make sure that oldmem, where the dump is stored, is protected
638638
*/
639-
static void reserve_oldmem(void)
639+
static void __init reserve_oldmem(void)
640640
{
641641
#ifdef CONFIG_CRASH_DUMP
642642
if (OLDMEM_BASE)
@@ -648,7 +648,7 @@ static void reserve_oldmem(void)
648648
/*
649649
* Make sure that oldmem, where the dump is stored, is protected
650650
*/
651-
static void remove_oldmem(void)
651+
static void __init remove_oldmem(void)
652652
{
653653
#ifdef CONFIG_CRASH_DUMP
654654
if (OLDMEM_BASE)

0 commit comments

Comments
 (0)