diff options
| author | Guenter Roeck <[email protected]> | 2019-05-30 12:41:38 +0000 |
|---|---|---|
| committer | Max Filippov <[email protected]> | 2019-05-30 13:53:53 +0000 |
| commit | adefd051a6707a6ca0ebad278d3c1c05c960fc3b (patch) | |
| tree | 41f046afd554a63edf78e75170f0e4e5121aad1d /lib/lockref.c | |
| parent | Linux 5.2-rc2 (diff) | |
| download | kernel-adefd051a6707a6ca0ebad278d3c1c05c960fc3b.tar.gz kernel-adefd051a6707a6ca0ebad278d3c1c05c960fc3b.zip | |
xtensa: Fix section mismatch between memblock_reserve and mem_reserve
Since commit 9012d011660ea5cf2 ("compiler: allow all arches to enable
CONFIG_OPTIMIZE_INLINING"), xtensa:tinyconfig fails to build with section
mismatch errors.
WARNING: vmlinux.o(.text.unlikely+0x68): Section mismatch in reference
from the function ___pa()
to the function .meminit.text:memblock_reserve()
WARNING: vmlinux.o(.text.unlikely+0x74): Section mismatch in reference
from the function mem_reserve()
to the function .meminit.text:memblock_reserve()
FATAL: modpost: Section mismatches detected.
This was not seen prior to the above mentioned commit because mem_reserve()
was always inlined.
Mark mem_reserve(() as __init_memblock to have it reside in the same
section as memblock_reserve().
Signed-off-by: Guenter Roeck <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Max Filippov <[email protected]>
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions
