Skip to content

Commit

Permalink
arm64/fpsimd: Make kernel_neon_ API _GPL
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
broonie authored and willdeacon committed Nov 8, 2022
1 parent f0c4d9f commit aaeca98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm64/kernel/fpsimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ void kernel_neon_begin(void)
/* Invalidate any task state remaining in the fpsimd regs: */
fpsimd_flush_cpu_state();
}
EXPORT_SYMBOL(kernel_neon_begin);
EXPORT_SYMBOL_GPL(kernel_neon_begin);

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

put_cpu_fpsimd_context();
}
EXPORT_SYMBOL(kernel_neon_end);
EXPORT_SYMBOL_GPL(kernel_neon_end);

#ifdef CONFIG_EFI

Expand Down

0 comments on commit aaeca98

Please sign in to comment.