]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commitce87a3c5d6a4fb9a8618b3083b8dacff9f72c8d6
tree560c6e7afccfc44d7dfe1e702b4c860a5496cbbc
parent4abada6543537dc85d63404ca8e307ff263cd095
arm64: export tishift functions to modules

BugLink: http://bugs.launchpad.net/bugs/1786352
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm64/kernel/arm64ksyms.c
arch/arm64/lib/tishift.S