Skip to content

Commit aaeca98

Browse files
brooniewilldeacon
authored andcommitted
arm64/fpsimd: Make kernel_neon_ API _GPL
Currently for reasons lost in the mists of time the kernel_neon_ APIs are EXPORT_SYMBOL() but the general policy for floating point usage is that it should be GPL only given the non-standard runtime environment that holds while it is in use and PCS impacts when code is compiled for FP usage. Given the limited existing deployment of non-GPL modules for arm64 and the fact that other architectures like x86 already make their equivalent functions GPL only this is not expected to be disruptive to existing users. Suggested-by: Christoph Hellwig <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent f0c4d9f commit aaeca98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kernel/fpsimd.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ void kernel_neon_begin(void)
18381838
/* Invalidate any task state remaining in the fpsimd regs: */
18391839
fpsimd_flush_cpu_state();
18401840
}
1841-
EXPORT_SYMBOL(kernel_neon_begin);
1841+
EXPORT_SYMBOL_GPL(kernel_neon_begin);
18421842

18431843
/*
18441844
* kernel_neon_end(): give the CPU FPSIMD registers back to the current task
@@ -1856,7 +1856,7 @@ void kernel_neon_end(void)
18561856

18571857
put_cpu_fpsimd_context();
18581858
}
1859-
EXPORT_SYMBOL(kernel_neon_end);
1859+
EXPORT_SYMBOL_GPL(kernel_neon_end);
18601860

18611861
#ifdef CONFIG_EFI
18621862

0 commit comments

Comments
 (0)