summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-01-23 21:55:54 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-08-14 12:28:44 -0400
commit43d7ecf0f764bf6cfeda17666a36899a560ccdfc (patch)
tree09c92214a3ca310776d54d28d38e637d7e5dabb4
parent9c413cb0e979f7ce1178e32479799f5a9e2a54ef (diff)
arm64: Fix circular header dependency
Replace linux/percpu.h include with asm/percpu.h to avoid circular dependency. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Signed-off-by: Suren Baghdasaryan <surenb@google.com>
-rw-r--r--arch/arm64/include/asm/spectre.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/spectre.h b/arch/arm64/include/asm/spectre.h
index db7b371b367c..31823d9715ab 100644
--- a/arch/arm64/include/asm/spectre.h
+++ b/arch/arm64/include/asm/spectre.h
@@ -13,8 +13,8 @@
#define __BP_HARDEN_HYP_VECS_SZ ((BP_HARDEN_EL2_SLOTS - 1) * SZ_2K)
#ifndef __ASSEMBLY__
-
-#include <linux/percpu.h>
+#include <linux/smp.h>
+#include <asm/percpu.h>
#include <asm/cpufeature.h>
#include <asm/virt.h>