summaryrefslogtreecommitdiff
path: root/arch/arm/mm/cache-nop.S
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2024-04-23 10:31:41 +0300
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-04-29 16:14:17 +0300
commit2074beebacfc09b6c47dce1f573a67131c70ec9a (patch)
tree430355b2dd94174968a2455e346eaef329a2598a /arch/arm/mm/cache-nop.S
parent1036b89580dc611cfb5dfe66af6b35452dfb272c (diff)
downloadlinux-2074beebacfc09b6c47dce1f573a67131c70ec9a.tar.xz
ARM: 9386/2: mm: Use symbol alias for cache functions
The cache functions to flush user cache (*_flush_user_cache_all) are in many cases just a branch to the corresponfing userspace or kernelspace function. These functions also have the same arguments. Simplify these by using SYM_FUNC_ALIAS() in all affected sites. The NOP cache has very many similar calls which are just returns, but it would be confusing to use aliases here, so leave all the explicit returns and drop a comment on why we are not using aliases. Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm/cache-nop.S')
-rw-r--r--arch/arm/mm/cache-nop.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mm/cache-nop.S b/arch/arm/mm/cache-nop.S
index 56e94091a55f..cd191aa90313 100644
--- a/arch/arm/mm/cache-nop.S
+++ b/arch/arm/mm/cache-nop.S
@@ -6,6 +6,10 @@
#include "proc-macros.S"
+/*
+ * These are all open-coded instead of aliased, to make clear
+ * what is going on here: all functions are stubbed out.
+ */
SYM_TYPED_FUNC_START(nop_flush_icache_all)
ret lr
SYM_FUNC_END(nop_flush_icache_all)