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-07-11 21:20:26 -0400
commit0826072930565deefbd8fec3b0c9655749bfe5c9 (patch)
tree710ec739b38f573a69336dcd25ad0ffc53f6459c
parent1c304846968a07b194e3dacc5cf5c55d3bc51081 (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>