From: Benjamin Tissoires Date: Thu, 5 Oct 2023 15:55:34 +0000 (+0200) Subject: selftests/hid: force using our compiled libbpf headers X-Git-Tag: v6.7-rc1~104^2~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91939636cac4585e5c99a15c8b9023e0dcabb4e5;p=thirdparty%2Fkernel%2Flinux.git selftests/hid: force using our compiled libbpf headers Turns out that we were relying on the globally installed headers, not the ones we freshly compiled. Add a manual include in CFLAGS to sort this out. Tested-by: Nick Desaulniers # Build Tested-by: Justin Stitt Link: https://lore.kernel.org/r/20230825-wip-selftests-v3-3-639963c54109@kernel.org Signed-off-by: Benjamin Tissoires --- diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile index a28054113f476..2b5ea18bde38b 100644 --- a/tools/testing/selftests/hid/Makefile +++ b/tools/testing/selftests/hid/Makefile @@ -22,6 +22,8 @@ CXX ?= $(CROSS_COMPILE)g++ HOSTPKG_CONFIG := pkg-config CFLAGS += -g -O0 -rdynamic -Wall -Werror -I$(OUTPUT) +CFLAGS += -I$(OUTPUT)/tools/include + LDLIBS += -lelf -lz -lrt -lpthread # Silence some warnings when compiled with clang