ARM: 8949/1: mm: mark free_memmap as __init
authorOlof Johansson <olof@lixom.net>
Wed, 18 Dec 2019 00:18:49 +0000 (01:18 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sat, 25 Jan 2020 18:18:18 +0000 (18:18 +0000)
commit31f3010e60522ede237fb145a63b4af5a41718c2
treef7929072386b4cf076ffcee1248cde8a6bd8b530
parent40ff1ddb5570284e039e0ff14d7a859a73dc3673
ARM: 8949/1: mm: mark free_memmap as __init

As of commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING
forcibly"), free_memmap() might not always be inlined, and thus is
triggering a section warning:

WARNING: vmlinux.o(.text.unlikely+0x904): Section mismatch in reference from the function free_memmap() to the function .meminit.text:memblock_free()

Mark it as __init, since the faller (free_unused_memmap) already is.

Fixes: ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING forcibly")
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/init.c