diff options
author | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | 2023-01-27 16:57:33 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-02-13 19:09:45 +0300 |
commit | 5d74231a2caad259f6669d8d6112814cef6bcd60 (patch) | |
tree | d2a501344407c6888692955d871ca9934c64cd92 /tools/testing/selftests/kcmp | |
parent | ecf9fdb5c2a9d63c732acccb6318feb73dd1589f (diff) | |
download | linux-5d74231a2caad259f6669d8d6112814cef6bcd60.tar.xz |
selftests: kcmp: 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/kcmp')
-rw-r--r-- | tools/testing/selftests/kcmp/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile index b4d39f6b5124..59a1e5379018 100644 --- a/tools/testing/selftests/kcmp/Makefile +++ b/tools/testing/selftests/kcmp/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := kcmp_test |