mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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>
This commit is contained in:
parent
26ba1e0a98
commit
c94ae2189a
|
|
@ -56,7 +56,7 @@ clean:
|
|||
|
||||
%.bpf.o: %.bpf.c vmlinux.h $(BPFOBJ) | $(OUTPUT)
|
||||
$(call msg,BPF,$@)
|
||||
$(Q)$(CLANG) -g -O2 --target=bpf $(INCLUDES) \
|
||||
$(Q)$(CLANG) -g -O2 --target=bpf -Wall -Werror $(INCLUDES) \
|
||||
-c $(filter %.c,$^) -o $@ && \
|
||||
$(LLVM_STRIP) -g $@
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user