Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mathieu Desnoyers and committed by
Shuah Khan
c2d3cf36 07f0148a

+3 -3
+1 -1
tools/testing/selftests/filesystems/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - CFLAGS += -I../../../../usr/include/ 3 + CFLAGS += $(KHDR_INCLUDES) 4 4 TEST_GEN_PROGS := devpts_pts 5 5 TEST_GEN_PROGS_EXTENDED := dnotify_test 6 6
+1 -1
tools/testing/selftests/filesystems/binderfs/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - CFLAGS += -I../../../../../usr/include/ -pthread 3 + CFLAGS += $(KHDR_INCLUDES) -pthread 4 4 TEST_GEN_PROGS := binderfs_test 5 5 6 6 binderfs_test: binderfs_test.c ../../kselftest.h ../../kselftest_harness.h
+1 -1
tools/testing/selftests/filesystems/epoll/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - CFLAGS += -I../../../../../usr/include/ 3 + CFLAGS += $(KHDR_INCLUDES) 4 4 LDLIBS += -lpthread 5 5 TEST_GEN_PROGS := epoll_wakeup_test 6 6