From: Mathieu Desnoyers Date: Fri, 27 Jan 2023 13:57:40 +0000 (-0500) Subject: selftests: pid_namespace: Fix incorrect kernel headers search path X-Git-Tag: v6.1.16~139 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c490a85e7dacf027e32fb5fd6ae1d7151da4f291;p=users%2Fdwmw2%2Flinux.git selftests: pid_namespace: Fix incorrect kernel headers search path commit e81ff69f66969a16a98a2e0977c1860f1c182c74 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/tools/testing/selftests/pid_namespace/Makefile b/tools/testing/selftests/pid_namespace/Makefile index edafaca1aeb39..9286a1d22cd3a 100644 --- a/tools/testing/selftests/pid_namespace/Makefile +++ b/tools/testing/selftests/pid_namespace/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -g -I../../../../usr/include/ +CFLAGS += -g $(KHDR_INCLUDES) TEST_GEN_PROGS = regression_enomem