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:53:22 +0000 (08:53 +0200)
commitd7ce4d564815281a0b7593cb9f3e52db8c25d85a
tree1a3eaed5fb9a6fa4410e41c4c1d6977651380497
parent3c751807c9d25c548c91eed58d3bf7cb128d9853
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