]> git.baikalelectronics.ru Git - kernel.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)
commit4e4470c9a0e43a3b5a634d79511e822107d98a03
treed4b7ec9123394b567e596842f1423351b5c3f0bc
parent26c7bb929d237817d826721a510dc3a6295a1c7c
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