summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/spectre.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-01-24 03:55:54 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-12-21 01:26:30 +0100
commit04bc786d663543512d08f1b86c7bcefb5144afe3 (patch)
treebb3d5f636d4250ae8b82aa73150aecdcc30c449b /arch/arm64/include/asm/spectre.h
parenttimekeeping: Kill percpu.h dependency (diff)
downloadlinux-04bc786d663543512d08f1b86c7bcefb5144afe3.tar.xz
linux-04bc786d663543512d08f1b86c7bcefb5144afe3.zip
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>
Diffstat (limited to 'arch/arm64/include/asm/spectre.h')
-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 06c357d83b13..0c4d9045c31f 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>