From 5c3485197eab808768271d72e188ad11b6fcecd4 Mon Sep 17 00:00:00 2001 From: Sedat Dilek Date: Fri, 8 Jun 2018 18:23:26 +0200 Subject: [PATCH] x86: Warn clang does not support asm-goto Signed-off-by: Sedat Dilek --- arch/x86/Makefile | 2 +- arch/x86/include/asm/cpufeature.h | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index a08e82856563..6042f6f5a1be 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -181,7 +181,7 @@ ifdef CONFIG_FUNCTION_GRAPH_TRACER endif ifndef CC_HAVE_ASM_GOTO - $(error Compiler lacks asm-goto support.) + $(warning Compiler lacks asm-goto support.) endif # diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h index aced6c9290d6..79177f0efdf1 100644 --- a/arch/x86/include/asm/cpufeature.h +++ b/arch/x86/include/asm/cpufeature.h @@ -140,16 +140,9 @@ extern void clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int bit); #define setup_force_cpu_bug(bit) setup_force_cpu_cap(bit) +/* Clang does not support asm-goto (see LLVM bug #9295). */ #if defined(__clang__) && !defined(CC_HAVE_ASM_GOTO) -/* - * Workaround for the sake of BPF compilation which utilizes kernel - * headers, but clang does not support ASM GOTO and fails the build. - */ -#ifndef __BPF_TRACING__ -#warning "Compiler lacks ASM_GOTO support. Add -D __BPF_TRACING__ to your compiler arguments" -#endif - #define static_cpu_has(bit) boot_cpu_has(bit) #else -- 2.18.0