From 0a39c7fe727bc182ad08bfa42f1ec6324554da78 Mon Sep 17 00:00:00 2001 From: Matthias Maennich Date: Fri, 25 Oct 2019 17:28:28 +0100 Subject: [PATCH] Revert "ANDROID: x86: Remove a useless warning message" This reverts commit 1f1098e0a3f04acca33961b0b352f023baf127e4. Signed-off-by: Matthias Maennich --- arch/x86/include/asm/cpufeature.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h index 48670eb3b4d7..59bf91c57aa8 100644 --- a/arch/x86/include/asm/cpufeature.h +++ b/arch/x86/include/asm/cpufeature.h @@ -154,6 +154,9 @@ extern void clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int bit); * 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)