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/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 26ba1e0 commit c94ae21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)