selftests: vm: Fix incorrect kernel headers search path
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 27 Jan 2023 13:57:49 +0000 (08:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:18 +0000 (09:34 +0100)
commit5bed9f821f2a4c1883eb5ed2f93e52701c889934
tree6fbf9600d8f7f06403ba5d35eadd51d5ca8f71e7
parent0545d5d25c9e2b1e4d2e52dbc859b3a19b5616d0
selftests: vm: Fix incorrect kernel headers search path

commit 8eb3751c73bec746f61fb6bada60d1074d92b8c3 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 <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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/vm/Makefile