diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2024-04-23 09:31:41 +0200 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-04-29 15:14:17 +0200 |
commit | 2074beebacfc09b6c47dce1f573a67131c70ec9a (patch) | |
tree | 430355b2dd94174968a2455e346eaef329a2598a /arch/arm/mm/proc-arm946.S | |
parent | ARM: 9385/2: mm: Type-annotate all cache assembly routines (diff) | |
download | linux-2074beebacfc09b6c47dce1f573a67131c70ec9a.tar.xz linux-2074beebacfc09b6c47dce1f573a67131c70ec9a.zip |
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/proc-arm946.S')
-rw-r--r-- | arch/arm/mm/proc-arm946.S | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mm/proc-arm946.S b/arch/arm/mm/proc-arm946.S index 4fc883572e19..763a5a9bc735 100644 --- a/arch/arm/mm/proc-arm946.S +++ b/arch/arm/mm/proc-arm946.S @@ -88,9 +88,7 @@ SYM_FUNC_END(arm946_flush_icache_all) /* * flush_user_cache_all() */ -SYM_TYPED_FUNC_START(arm946_flush_user_cache_all) - b arm946_flush_kern_cache_all -SYM_FUNC_END(arm946_flush_user_cache_all) +SYM_FUNC_ALIAS(arm946_flush_user_cache_all, arm946_flush_kern_cache_all) /* * flush_kern_cache_all() |