]> git.baikalelectronics.ru Git - kernel.git/commit
linkage: add generic GLOBAL() macro
authorMark Rutland <mark.rutland@arm.com>
Thu, 15 Nov 2018 22:41:58 +0000 (22:41 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 30 Nov 2018 13:29:04 +0000 (13:29 +0000)
commit9aa8fee0265064e6b8d1ea1b33c041dd41aa6c1b
treee28084d194f86a5b54b12b93c4b9abe22c4c53e8
parentdb73dc1cf7274819a23f0e13be9887a2a2466670
linkage: add generic GLOBAL() macro

Declaring a global symbol in assembly is tedious, error-prone, and
painful to read. While ENTRY() exists, this is supposed to be used for
function entry points, and this affects alignment in a potentially
undesireable manner.

Instead, let's add a generic GLOBAL() macro for this, as x86 added
locally in commit:

  86faccab197da347 ("x86: asm linkage - introduce GLOBAL macro")

... thus allowing us to use this more freely in the kernel.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Torsten Duwe <duwe@suse.de>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
include/linux/linkage.h