]> www.infradead.org Git - users/dwmw2/linux.git/commit
arm64: jump_label.h: use asm_volatile_goto macro instead of "asm goto"
authorMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Sun, 9 Sep 2018 15:47:31 +0000 (17:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:56:03 +0000 (08:56 +0200)
commite76f7b7df8461b3ba433cb90b5ec4cf675bf147a
tree8c8946d06fd264c456e22980b4fe991de3961be9
parented14acd316bae2d3365f71ea9941490a71d3adf2
arm64: jump_label.h: use asm_volatile_goto macro instead of "asm goto"

[ Upstream commit 13aceef06adfaf93d52e01e28a8bc8a0ad471d83 ]

All other uses of "asm goto" go through asm_volatile_goto, which avoids
a miscompile when using GCC < 4.8.2. Replace our open-coded "asm goto"
statements with the asm_volatile_goto macro to avoid issues with older
toolchains.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/jump_label.h