aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-12-10 19:20:23 +0000
committerWill Deacon <will.deacon@arm.com>2018-12-10 19:20:23 +0000
commit4a1daf29d33d766a1a6f03015b93bfb01b93f46e (patch)
treeb5d10acd3ed364aae940bb13b58183288546fe77
parentMerge branch 'for-next/kexec' into aarch64/for-next/core (diff)
downloadlinux-dev-4a1daf29d33d766a1a6f03015b93bfb01b93f46e.tar.xz
linux-dev-4a1daf29d33d766a1a6f03015b93bfb01b93f46e.zip
arm64: mm: EXPORT vabits_user to modules
TASK_SIZE is defined using the vabits_user variable for 64-bit tasks, so ensure that this variable is exported to modules to avoid the following build breakage with allmodconfig: | ERROR: "vabits_user" [lib/test_user_copy.ko] undefined! | ERROR: "vabits_user" [drivers/misc/lkdtm/lkdtm.ko] undefined! | ERROR: "vabits_user" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--arch/arm64/mm/mmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index 0d3eacc4bfbb..674c409a8ce4 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -53,6 +53,7 @@
u64 idmap_t0sz = TCR_T0SZ(VA_BITS);
u64 idmap_ptrs_per_pgd = PTRS_PER_PGD;
u64 vabits_user __ro_after_init;
+EXPORT_SYMBOL(vabits_user);
u64 kimage_voffset __ro_after_init;
EXPORT_SYMBOL(kimage_voffset);