]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: mm: EXPORT vabits_user to modules
authorWill Deacon <will.deacon@arm.com>
Mon, 10 Dec 2018 19:20:23 +0000 (19:20 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 10 Dec 2018 19:20:23 +0000 (19:20 +0000)
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>
arch/arm64/mm/mmu.c

index 0d3eacc4bfbbf7803d0b0a51783f584bc41c7b64..674c409a8ce4e2b925df76bbbe81bc33a02f20f4 100644 (file)
@@ -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);