Skip to contentSkip to conversation

compiler-clang-remove-version-check-for-bpf-tracing.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 28, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: compiler-clang: remove version check for BPF Tracing
has been removed from the -mm tree. Its filename was
compiler-clang-remove-version-check-for-bpf-tracing.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Nick Desaulniers <[email protected]>
Subject: 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.

---

 include/linux/compiler-clang.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/compiler-clang.h renamed from include/linux/compiler-clang.h~compiler-clang-remove-version-check-for-bpf-tracing +2 -0
@@ -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 */
 

_

Patches currently in -mm which might be from [email protected] are

lib-string-remove-unnecessary-undefs.patch
gcov-remove-support-for-gcc-49.patch