]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:33:26 +0000 (16:33 -0500)
commitf1025b2f75a0e2ad037e1d875e43d996aed78dfb
tree09fe95333036efdf2fa062394b229cc476e82b2d
parent092c84fdac555086bec0d6de64274062d2add748
ARM: 8949/1: mm: mark free_memmap as __init

commit 31f3010e60522ede237fb145a63b4af5a41718c2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mm/init.c