OSDN Git Service

x86/cpufeature: Guard asm_volatile_goto usage for BPF compilation
authorAlexei Starovoitov <ast@kernel.org>
Sun, 13 May 2018 19:32:22 +0000 (12:32 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 13 May 2018 19:49:14 +0000 (21:49 +0200)
commitb1ae32dbab50ed19cfc16d225b0fb0114fb13025
tree57c5c39ada4cb8f287392d5e0630edea43667ccd
parent13ebe18c94f5b0665c01ae7fad2717ae959f4212
x86/cpufeature: Guard asm_volatile_goto usage for BPF compilation

Workaround for the sake of BPF compilation which utilizes kernel
headers, but clang does not support ASM GOTO and fails the build.

Fixes: d0266046ad54 ("x86: Remove FAST_FEATURE_TESTS")
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: daniel@iogearbox.net
Cc: peterz@infradead.org
Cc: netdev@vger.kernel.org
Cc: bp@alien8.de
Cc: yhs@fb.com
Cc: kernel-team@fb.com
Cc: torvalds@linux-foundation.org
Cc: davem@davemloft.net
Link: https://lkml.kernel.org/r/20180513193222.1997938-1-ast@kernel.org
arch/x86/include/asm/cpufeature.h
samples/bpf/Makefile