]> git.hungrycats.org Git - linux/commit
arm64: export tishift functions to modules
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 27 Apr 2018 22:42:52 +0000 (00:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 06:17:17 +0000 (08:17 +0200)
commit61ee78b99f544e2ed77789da94eca527a221a239
tree96ce24a85e06eb4ce7f03e8fc01a08c6ebe4bcac
parent7a5c78b05ec6de5cddc2f8d3308e722ec4e4e280
arm64: export tishift functions to modules

commit 255845fc43a3aaf806852a1d3bc89bff1411ebe3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/arm64ksyms.c
arch/arm64/lib/tishift.S