summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/filesystems/epoll/Makefile
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2023-01-27 08:57:29 -0500
committerShuah Khan <skhan@linuxfoundation.org>2023-02-13 09:09:44 -0700
commitc2d3cf3653a8ff6e4b402d55e7f84790ac08a8ad (patch)
tree3c747e6735ac3d2aeb2f4f7774c89eaa0499757d /tools/testing/selftests/filesystems/epoll/Makefile
parent07f0148aafe8c95a3a76cd59e9e75b4d78d1d31d (diff)
selftests: filesystems: 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/filesystems/epoll/Makefile')
-rw-r--r--tools/testing/selftests/filesystems/epoll/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/filesystems/epoll/Makefile b/tools/testing/selftests/filesystems/epoll/Makefile
index 78ae4aaf7141..0788a7dc8004 100644
--- a/tools/testing/selftests/filesystems/epoll/Makefile
+++ b/tools/testing/selftests/filesystems/epoll/Makefile
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -I../../../../../usr/include/
+CFLAGS += $(KHDR_INCLUDES)
LDLIBS += -lpthread
TEST_GEN_PROGS := epoll_wakeup_test