Skip to content

Commit 48ccc8e

Browse files
arndbRussell King (Oracle)
authored andcommitted
ARM: 9141/1: only warn about XIP address when not compile testing
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: 2162183 ("ARM: 8713/1: NOMMU: Support MPU in XIP configuration") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 1f32312 commit 48ccc8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/kernel/vmlinux-xip.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")
176176
ASSERT((_end - __bss_start) >= 12288, ".bss too small for CONFIG_XIP_DEFLATED_DATA")
177177
#endif
178178

179-
#ifdef CONFIG_ARM_MPU
179+
#if defined(CONFIG_ARM_MPU) && !defined(CONFIG_COMPILE_TEST)
180180
/*
181181
* Due to PMSAv7 restriction on base address and size we have to
182182
* enforce minimal alignment restrictions. It was seen that weaker

0 commit comments

Comments
 (0)