Skip to content

Commit c94ae21

Browse files
author
Benjamin Tissoires
committed
HID: bpf: error on warnings when compiling bpf objects
There is no real reasons to paper over warnings for such small programs. Link: https://lore.kernel.org/r/20240608-hid_bpf_struct_ops-v3-13-6ac6ade58329@kernel.org Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
1 parent 26ba1e0 commit c94ae21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hid/bpf/progs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ clean:
5656

5757
%.bpf.o: %.bpf.c vmlinux.h $(BPFOBJ) | $(OUTPUT)
5858
$(call msg,BPF,$@)
59-
$(Q)$(CLANG) -g -O2 --target=bpf $(INCLUDES) \
59+
$(Q)$(CLANG) -g -O2 --target=bpf -Wall -Werror $(INCLUDES) \
6060
-c $(filter %.c,$^) -o $@ && \
6161
$(LLVM_STRIP) -g $@
6262

0 commit comments

Comments
 (0)