From 30d26357f5b1e9cfa159a590523dcf45b231f24a Mon Sep 17 00:00:00 2001 From: Joseph Pittman Date: Tue, 15 Feb 2022 14:01:39 -0500 Subject: [PATCH] fix(bpf): Compile eBPF probe with -Wno-unknown-attributes In some cases we use clang 7 to build the eBPF probe. That version of clang is too old to support some of the compiler attributes which appear in the source code for more modern kernel versions. So disable warnings associated with unknown attributes. Signed-off-by: Joseph Pittman Signed-off-by: Luca Guerra --- driver/bpf/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/driver/bpf/Makefile b/driver/bpf/Makefile index 48a3529f25..52bb2cffe0 100644 --- a/driver/bpf/Makefile +++ b/driver/bpf/Makefile @@ -62,5 +62,6 @@ $(obj)/probe.o: $(src)/probe.c \ -fno-jump-tables \ -fno-stack-protector \ -Wno-tautological-compare \ + -Wno-unknown-attributes \ -O2 -g -emit-llvm -c $< -o $(patsubst %.o,%.ll,$@) $(LLC) -march=bpf -filetype=obj -o $@ $(patsubst %.o,%.ll,$@)