ARM: 9141/1: only warn about XIP address when not compile testing
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Oct 2021 14:30:37 +0000 (15:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 18:48:18 +0000 (19:48 +0100)
commit5a768b4d3e1a3eda23b8c5690645fde2bcff910a
tree552f4387282bc85b03ee58b98a8ec983def3b028
parent15b278f94bbb788974881f5e67d3f12f0f8be7cc
ARM: 9141/1: only warn about XIP address when not compile testing

commit 48ccc8edf5b90622cdc4f8878e0042ab5883e2ca upstream.

In randconfig builds, we sometimes come across this warning:

arm-linux-gnueabi-ld: XIP start address may cause MPU programming issues

While this is helpful for actual systems to figure out why it
fails, the warning does not provide any benefit for build testing,
so guard it in a check for CONFIG_COMPILE_TEST, which is usually
set on randconfig builds.

Fixes: 216218308cfb ("ARM: 8713/1: NOMMU: Support MPU in XIP configuration")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/vmlinux-xip.lds.S