aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/spectre.h
diff options
context:
space:
mode:
authorWill Deacon2022-03-14 19:01:12 +0000
committerWill Deacon2022-03-14 19:01:12 +0000
commitb3ea0eafa982b3906720e5ff3769dc10f9bfc6ad (patch)
treeae88dd4df278c9f0ab3583b64f3975fad1cae47a /arch/arm64/include/asm/spectre.h
parent563c463595307a3dd1ae80c462af69d94b1e80bf (diff)
parent770093459b9b333380aa71f2c31c60b14895c1df (diff)
Merge branch 'for-next/misc' into for-next/core
* for-next/misc: arm64: mm: Drop 'const' from conditional arm64_dma_phys_limit definition arm64: clean up tools Makefile arm64: drop unused includes of <linux/personality.h> arm64: Do not defer reserve_crashkernel() for platforms with no DMA memory zones arm64: prevent instrumentation of bp hardening callbacks arm64: cpufeature: Remove cpu_has_fwb() check arm64: atomics: remove redundant static branch arm64: entry: Save some nops when CONFIG_ARM64_PSEUDO_NMI is not set
Diffstat (limited to 'arch/arm64/include/asm/spectre.h')
-rw-r--r--arch/arm64/include/asm/spectre.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/spectre.h b/arch/arm64/include/asm/spectre.h
index f62ca39da6c5..d476c06757c5 100644
--- a/arch/arm64/include/asm/spectre.h
+++ b/arch/arm64/include/asm/spectre.h
@@ -67,7 +67,8 @@ struct bp_hardening_data {
DECLARE_PER_CPU_READ_MOSTLY(struct bp_hardening_data, bp_hardening_data);
-static inline void arm64_apply_bp_hardening(void)
+/* Called during entry so must be __always_inline */
+static __always_inline void arm64_apply_bp_hardening(void)
{
struct bp_hardening_data *d;