diff options
author | Will Deacon <will.deacon@arm.com> | 2018-02-19 14:08:56 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-03-27 14:14:49 +0200 |
commit | 8a624f145c0d40903cb73090f51797e480bd1295 (patch) | |
tree | 5fc40fc12a37d9ad03fb34ad9add1a028a6c4335 /arch/arm64/include/asm/lse.h | |
parent | arm64: fpsimd: include <linux/init.h> in fpsimd.h (diff) | |
download | linux-8a624f145c0d40903cb73090f51797e480bd1295.tar.xz linux-8a624f145c0d40903cb73090f51797e480bd1295.zip |
arm64: lse: Include compiler_types.h and export.h for out-of-line LL/SC
When the LL/SC atomics are moved out-of-line, they are annotated as
notrace and exported to modules. Ensure we pull in the relevant include
files so that these macros are defined when we need them.
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/lse.h')
-rw-r--r-- | arch/arm64/include/asm/lse.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/lse.h b/arch/arm64/include/asm/lse.h index eec95768eaad..8262325e2fc6 100644 --- a/arch/arm64/include/asm/lse.h +++ b/arch/arm64/include/asm/lse.h @@ -4,8 +4,11 @@ #if defined(CONFIG_AS_LSE) && defined(CONFIG_ARM64_LSE_ATOMICS) +#include <linux/compiler_types.h> +#include <linux/export.h> #include <linux/stringify.h> #include <asm/alternative.h> +#include <asm/cpucaps.h> #ifdef __ASSEMBLER__ |