diff options
author | James Morse <james.morse@arm.com> | 2020-02-20 17:58:39 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-02-22 12:01:47 +0100 |
commit | e43f1331e2ef913b8c566920c9af75e0ccdd1d3f (patch) | |
tree | a459a778f754cae09f63052babb89d38129a2d1c /arch/arm64/include/asm/cacheflush.h | |
parent | KVM: arm64: Define our own swab32() to avoid a uapi static inline (diff) | |
download | linux-e43f1331e2ef913b8c566920c9af75e0ccdd1d3f.tar.xz linux-e43f1331e2ef913b8c566920c9af75e0ccdd1d3f.zip |
arm64: Ask the compiler to __always_inline functions used by KVM at HYP
KVM uses some of the static-inline helpers like icache_is_vipt() from
its HYP code. This assumes the function is inlined so that the code is
mapped to EL2. The compiler may decide not to inline these, and the
out-of-line version may not be in the __hyp_text section.
Add the additional __always_ hint to these static-inlines that are used
by KVM.
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200220165839.256881-4-james.morse@arm.com
Diffstat (limited to 'arch/arm64/include/asm/cacheflush.h')
-rw-r--r-- | arch/arm64/include/asm/cacheflush.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h index 665c78e0665a..e6cca3d4acf7 100644 --- a/arch/arm64/include/asm/cacheflush.h +++ b/arch/arm64/include/asm/cacheflush.h @@ -145,7 +145,7 @@ extern void copy_to_user_page(struct vm_area_struct *, struct page *, #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1 extern void flush_dcache_page(struct page *); -static inline void __flush_icache_all(void) +static __always_inline void __flush_icache_all(void) { if (cpus_have_const_cap(ARM64_HAS_CACHE_DIC)) return; |