]> 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)
commit0970a08324fc14d373a919ee550555d80e80f6d7
treed4b7ec9123394b567e596842f1423351b5c3f0bc
parentb8733d280d1151c05c92c542d5f39550a0feca00
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