From: Mathieu Desnoyers Date: Fri, 27 Jan 2023 13:57:32 +0000 (-0500) Subject: selftests: ipc: Fix incorrect kernel headers search path X-Git-Tag: v6.3-rc1~131^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecf9fdb5c2a9d63c732acccb6318feb73dd1589f;p=thirdparty%2Flinux.git selftests: ipc: Fix incorrect kernel headers search path Use $(KHDR_INCLUDES) as lookup path for kernel headers. This prevents building against kernel headers from the build environment in scenarios where kernel headers are installed into a specific output directory (O=...). Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar Cc: # 5.18+ Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/ipc/Makefile b/tools/testing/selftests/ipc/Makefile index 1c4448a843a41..50e9c299fc4ae 100644 --- a/tools/testing/selftests/ipc/Makefile +++ b/tools/testing/selftests/ipc/Makefile @@ -10,7 +10,7 @@ ifeq ($(ARCH),x86_64) CFLAGS := -DCONFIG_X86_64 -D__x86_64__ endif -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := msgque