Skip to content

Commit bade5c5

Browse files
captain5050anakryiko
authored andcommitted
tools/bpftool: Add -Wall when building BPF programs
No additional warnings are generated by enabling this, but having it enabled will help avoid regressions. Signed-off-by: Ian Rogers <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent ce5a518 commit bade5c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/bpf/bpftool/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ $(OUTPUT)%.bpf.o: skeleton/%.bpf.c $(OUTPUT)vmlinux.h $(LIBBPF)
166166
-I$(srctree)/tools/include/uapi/ \
167167
-I$(LIBBPF_PATH) \
168168
-I$(srctree)/tools/lib \
169-
-g -O2 -target bpf -c $< -o $@ && $(LLVM_STRIP) -g $@
169+
-g -O2 -Wall -target bpf -c $< -o $@ && $(LLVM_STRIP) -g $@
170170

171171
$(OUTPUT)%.skel.h: $(OUTPUT)%.bpf.o $(BPFTOOL_BOOTSTRAP)
172172
$(QUIET_GEN)$(BPFTOOL_BOOTSTRAP) gen skeleton $< > $@

0 commit comments

Comments
 (0)