summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2020-11-09 09:06:42 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2020-11-09 17:13:28 +1100
commit2d057b78e453ff54bd4610164699656bd6a244ca (patch)
tree91bf6a60b98b1266eab276cf6a81cbbc4a815ab2
parent954f6a5faf154eeebb6bd5140b38580ef137ad14 (diff)
downloadlinux-2d057b78e453ff54bd4610164699656bd6a244ca.tar.gz
linux-2d057b78e453ff54bd4610164699656bd6a244ca.tar.xz
compiler-clang: remove version check for BPF Tracing
bpftrace parses the kernel headers and uses Clang under the hood. Remove the version check when __BPF_TRACING__ is defined (as bpftrace does) so that this tool can continue to parse kernel headers, even with older clang sources. Link: https://lkml.kernel.org/r/20201104191052.390657-1-ndesaulniers@google.com Fixes: commit 1f7a44f63e6c ("compiler-clang: add build check for clang 10.0.1") Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Reported-by: Chen Yu <yu.chen.surf@gmail.com> Reported-by: Jarkko Sakkinen <jarkko@kernel.org> Acked-by: Jarkko Sakkinen <jarkko@kernel.org> Tested-by: Jarkko Sakkinen <jarkko@kernel.org> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--include/linux/compiler-clang.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h
index dd7233c48bf3..98cff1b4b088 100644
--- a/include/linux/compiler-clang.h
+++ b/include/linux/compiler-clang.h
@@ -8,8 +8,10 @@
+ __clang_patchlevel__)
#if CLANG_VERSION < 100001
+#ifndef __BPF_TRACING__
# error Sorry, your version of Clang is too old - please use 10.0.1 or newer.
#endif
+#endif
/* Compiler specific definitions for Clang compiler */