From: Catalin Marinas Date: Mon, 7 Aug 2017 11:36:35 +0000 (+0100) Subject: arm64: neon: Export kernel_neon_busy to loadable modules X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=11cefd5ac25f242349994140a3bce3a20db0c751;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git arm64: neon: Export kernel_neon_busy to loadable modules may_use_simd() can be invoked from loadable modules and it accesses kernel_neon_busy. Make sure that the latter is exported. Fixes: cb84d11e1625 ("arm64: neon: Remove support for nested or hardirq kernel-mode NEON") Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 138fcfaeadc1..9da4e636b328 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -255,6 +255,7 @@ void fpsimd_flush_task_state(struct task_struct *t) #ifdef CONFIG_KERNEL_MODE_NEON DEFINE_PER_CPU(bool, kernel_neon_busy); +EXPORT_PER_CPU_SYMBOL(kernel_neon_busy); /* * Kernel-side NEON support functions