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:54:25 +0000 (08:54 +0200)
commitf2c9d68ed3c2cda6df03afcc150e1c6ad1d072d5
tree8edcb282a2b43969dd093c7f9763e875028a9bb0
parent7a2df42a5371a09cca5a272f1edb29ced625221e
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