diff options
author | Will Deacon <will@kernel.org> | 2020-06-30 14:53:07 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-07-21 11:50:37 +0200 |
commit | 5f1f7f6c205a2e7f1d92229ac358254bd2826c2d (patch) | |
tree | 17cf8ba794d715dc95ff8533c2ae1e140f764516 /arch/arm64/include/asm/uaccess.h | |
parent | compiler.h: Move compiletime_assert() macros into compiler_types.h (diff) | |
download | linux-5f1f7f6c205a2e7f1d92229ac358254bd2826c2d.tar.xz linux-5f1f7f6c205a2e7f1d92229ac358254bd2826c2d.zip |
arm64: Reduce the number of header files pulled into vmlinux.lds.S
Although vmlinux.lds.S smells like an assembly file and is compiled
with __ASSEMBLY__ defined, it's actually just fed to the preprocessor to
create our linker script. This means that any assembly macros defined
by headers that it includes will result in a helpful link error:
| aarch64-linux-gnu-ld:./arch/arm64/kernel/vmlinux.lds:1: syntax error
In preparation for an arm64-private asm/rwonce.h implementation, which
will end up pulling assembly macros into linux/compiler.h, reduce the
number of headers we include directly and transitively in vmlinux.lds.S
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/uaccess.h')
-rw-r--r-- | arch/arm64/include/asm/uaccess.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/uaccess.h b/arch/arm64/include/asm/uaccess.h index bc5c7b091152..8d7c466f809b 100644 --- a/arch/arm64/include/asm/uaccess.h +++ b/arch/arm64/include/asm/uaccess.h @@ -19,6 +19,7 @@ #include <linux/string.h> #include <asm/cpufeature.h> +#include <asm/mmu.h> #include <asm/ptrace.h> #include <asm/memory.h> #include <asm/extable.h> |