Skip to content
Commit 31f3010e authored by Olof Johansson's avatar Olof Johansson Committed by Russell King
Browse files

ARM: 8949/1: mm: mark free_memmap as __init

As of commit ac7c3e4f ("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: ac7c3e4f

 ("compiler: enable CONFIG_OPTIMIZE_INLINING forcibly")
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 40ff1ddb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment