]> asedeno.scripts.mit.edu Git - linux.git/commit
arm64: asm-bug: Renumber macro local labels to avoid clashes
authorDave Martin <Dave.Martin@arm.com>
Tue, 24 Oct 2017 17:40:36 +0000 (18:40 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 25 Oct 2017 14:57:15 +0000 (15:57 +0100)
commitfa3eb71d96f52833a5e12def2a22b2347dd349d0
tree8d94ec0de4c1bc93b6f9c7f458bcb97377c11087
parent6436beeee5721a8e906e9eabf866f12d04470437
arm64: asm-bug: Renumber macro local labels to avoid clashes

Currently ASM_BUG() and its constituent macros define local
assembler labels 0, 1 and 2 internally, which carries a high risk
of clash with callers' labels and consequent mis-assembly.

This patch gives the labels a big random offset to minimise the
chance of such errors.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/asm-bug.h