Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/hid: add dependency on hid_common.h

Allows to recompile the C tests when that file changes

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://patch.msgid.link/20241001-hid-bpf-hid-generic-v3-5-2ef1019468df@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>

+1 -1
+1 -1
tools/testing/selftests/hid/Makefile
··· 229 229 $(Q)$(BPFTOOL) gen object $(<:.o=.linked1.o) $< 230 230 $(Q)$(BPFTOOL) gen skeleton $(<:.o=.linked1.o) name $(notdir $(<:.bpf.o=)) > $@ 231 231 232 - $(OUTPUT)/%.o: %.c $(BPF_SKELS) 232 + $(OUTPUT)/%.o: %.c $(BPF_SKELS) hid_common.h 233 233 $(call msg,CC,,$@) 234 234 $(Q)$(CC) $(CFLAGS) -c $(filter %.c,$^) $(LDLIBS) -o $@ 235 235