]> git.baikalelectronics.ru Git - kernel.git/commit
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:46:11 +0000 (19:46 +0100)
commit5757105342449d17c83e0e9c3f489d91903c90b2
tree2202fbaa1aa2839c57190985eb7d2cfa30684bf9
parent7adbaa1fc899c6b4bb8eb3f39e9d04bffe1160b9
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: d7f2cf28eb47 ("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