projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce5a518
)
tools/bpftool: Add -Wall when building BPF programs
author
Ian Rogers
<irogers@google.com>
Wed, 13 Jan 2021 22:36:09 +0000
(14:36 -0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Thu, 14 Jan 2021 03:11:14 +0000
(19:11 -0800)
No additional warnings are generated by enabling this, but having it
enabled will help avoid regressions.
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link:
https://lore.kernel.org/bpf/20210113223609.3358812-2-irogers@google.com
tools/bpf/bpftool/Makefile
patch
|
blob
|
history
diff --git
a/tools/bpf/bpftool/Makefile
b/tools/bpf/bpftool/Makefile
index
f897cb5
..
45ac2f9
100644
(file)
--- a/
tools/bpf/bpftool/Makefile
+++ b/
tools/bpf/bpftool/Makefile
@@
-166,7
+166,7
@@
$(OUTPUT)%.bpf.o: skeleton/%.bpf.c $(OUTPUT)vmlinux.h $(LIBBPF)
-I$(srctree)/tools/include/uapi/ \
-I$(LIBBPF_PATH) \
-I$(srctree)/tools/lib \
- -g -O2 -target bpf -c $< -o $@ && $(LLVM_STRIP) -g $@
+ -g -O2 -
Wall -
target bpf -c $< -o $@ && $(LLVM_STRIP) -g $@
$(OUTPUT)%.skel.h: $(OUTPUT)%.bpf.o $(BPFTOOL_BOOTSTRAP)
$(QUIET_GEN)$(BPFTOOL_BOOTSTRAP) gen skeleton $< > $@