]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
arm64: export tishift functions to modules
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 27 Apr 2018 22:42:52 +0000 (00:42 +0200)
committerWill Deacon <will.deacon@arm.com>
Mon, 21 May 2018 18:00:48 +0000 (19:00 +0100)
commit255845fc43a3aaf806852a1d3bc89bff1411ebe3
treed4b7ec9123394b567e596842f1423351b5c3f0bc
parent32c3fa7cdf0c4a3eb8405fc3e13398de019e828b
arm64: export tishift functions to modules

Otherwise modules that use these arithmetic operations will fail to
link. We accomplish this with the usual EXPORT_SYMBOL, which on most
architectures goes in the .S file but the ARM64 maintainers prefer that
insead it goes into arm64ksyms.

While we're at it, we also fix this up to use SPDX, and I personally
choose to relicense this as GPL2||BSD so that these symbols don't need
to be export_symbol_gpl, so all modules can use the routines, since
these are important general purpose compiler-generated function calls.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reported-by: PaX Team <pageexec@freemail.hu>
Cc: stable@vger.kernel.org
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/arm64ksyms.c
arch/arm64/lib/tishift.S