summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/drivers/s390x
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2023-01-27 16:57:28 +0300
committerShuah Khan <skhan@linuxfoundation.org>2023-02-13 19:09:44 +0300
commit07f0148aafe8c95a3a76cd59e9e75b4d78d1d31d (patch)
treeee7bf1605dc3b77075c507e7e4ae3f7d9166621a /tools/testing/selftests/drivers/s390x
parentf80f09b59fdd45753dd80ac623981ad00ece4c2d (diff)
downloadlinux-07f0148aafe8c95a3a76cd59e9e75b4d78d1d31d.tar.xz
selftests: drivers: 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 <mathieu.desnoyers@efficios.com> Cc: Shuah Khan <shuah@kernel.org> Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar <mingo@redhat.com> Cc: <stable@vger.kernel.org> # 5.18+ Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/drivers/s390x')
-rw-r--r--tools/testing/selftests/drivers/s390x/uvdevice/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/drivers/s390x/uvdevice/Makefile b/tools/testing/selftests/drivers/s390x/uvdevice/Makefile
index 891215a7dc8a..755d164384c4 100644
--- a/tools/testing/selftests/drivers/s390x/uvdevice/Makefile
+++ b/tools/testing/selftests/drivers/s390x/uvdevice/Makefile
@@ -11,10 +11,9 @@ else
TEST_GEN_PROGS := test_uvdevice
top_srcdir ?= ../../../../../..
-khdr_dir = $(top_srcdir)/usr/include
LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include
-CFLAGS += -Wall -Werror -static -I$(khdr_dir) -I$(LINUX_TOOL_ARCH_INCLUDE)
+CFLAGS += -Wall -Werror -static $(KHDR_INCLUDES) -I$(LINUX_TOOL_ARCH_INCLUDE)
include ../../../lib.mk