Guenter Roeck adefd051a6 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 <linux@roeck-us.net>
Message-Id: <1559220098-9955-1-git-send-email-linux@roeck-us.net>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2019-05-30 06:53:53 -07:00
..
2018-12-04 14:08:23 -08:00
2018-08-20 12:28:05 -07:00
2018-12-20 14:44:38 -08:00
2018-10-31 08:54:16 -07:00
2016-12-25 10:47:44 +01:00
2019-02-07 12:35:02 -08:00
2018-12-17 13:50:25 -08:00
2019-04-04 11:18:55 -07:00
2019-02-07 12:35:32 -08:00