aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2025-01-14 14:45:38 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2025-03-26 13:31:13 +0000
commitf9733aa925d99268e3c1f284d3e62e6a643dcc1d (patch)
treecfd6da4b220817eeec455aa4984ff2eebf56c8a5 /arch/arm/include/asm
parentLinux 6.14-rc1 (diff)
downloadlinux-f9733aa925d99268e3c1f284d3e62e6a643dcc1d.tar.gz
linux-f9733aa925d99268e3c1f284d3e62e6a643dcc1d.zip
ARM: 9439/1: arm32: simplify ARM_MMU_KEEP usage
All current users need to add a KEEP() around the argument so the value is actually kept, which doesn't feel very natural and is prone to upcoming bugs as the name suggests that this macro alone already keeps things. Move that directly into the definition. Signed-off-by: Rolf Eike Beer <eb@emlix.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/vmlinux.lds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/vmlinux.lds.h b/arch/arm/include/asm/vmlinux.lds.h
index d60f6e83a9f7..89697f204715 100644
--- a/arch/arm/include/asm/vmlinux.lds.h
+++ b/arch/arm/include/asm/vmlinux.lds.h
@@ -19,7 +19,7 @@
#endif
#ifdef CONFIG_MMU
-#define ARM_MMU_KEEP(x) x
+#define ARM_MMU_KEEP(x) KEEP(x)
#define ARM_MMU_DISCARD(x)
#else
#define ARM_MMU_KEEP(x)