x86/cpufeature: Guard asm_volatile_goto usage for BPF compilation
authorAlexei Starovoitov <[email protected]>
Sun, 13 May 2018 19:32:22 +0000 (12:32 -0700)
committerThomas Gleixner <[email protected]>
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/include/asm/cpufeature.h
samples/bpf/Makefile