Skip to content

Commit 9436cf2

Browse files
The asm_volatile_goto quirk is not needed anymore for 4.17, kernel has introduced a workaround macro __BPF_TRACING__.
1 parent b3fe25a commit 9436cf2

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

driver/bpf/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $(obj)/probe.o: $(src)/probe.c \
2727
$(KBUILD_CPPFLAGS) \
2828
$(DEBUG) \
2929
-D__KERNEL__ \
30+
-D__BPF_TRACING__ \
3031
-Wno-gnu-variable-sized-type-not-at-end \
3132
-Wno-address-of-packed-member \
3233
-fno-jump-tables \

driver/bpf/quirks.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,4 @@
2020
#define BPF_SUPPORTS_RAW_TRACEPOINTS
2121
#endif
2222

23-
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
24-
#include <linux/compiler.h>
25-
26-
#undef asm_volatile_goto
27-
#define asm_volatile_goto(...)
28-
#endif
29-
3023
#endif

0 commit comments

Comments
 (0)