From: Mathieu Desnoyers <mathieu.desnoy...@efficios.com> 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.desnoy...@efficios.com> Cc: Shuah Khan <sh...@kernel.org> Cc: linux-kselft...@vger.kernel.org Cc: Ingo Molnar <mi...@redhat.com> Cc: <sta...@vger.kernel.org> # 5.18+ Signed-off-by: Shuah Khan <sk...@linuxfoundation.org> https://jira.sw.ru/browse/PSBM-144416 (cherry picked from commit 65c68af0131bfef8e395c325735b6c40638cb931) Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com> --- tools/testing/selftests/move_mount_set_group/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/move_mount_set_group/Makefile b/tools/testing/selftests/move_mount_set_group/Makefile index 80c2d86812b0..94235846b6f9 100644 --- a/tools/testing/selftests/move_mount_set_group/Makefile +++ b/tools/testing/selftests/move_mount_set_group/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # Makefile for mount selftests. -CFLAGS = -g -I../../../../usr/include/ -Wall -O2 +CFLAGS = -g $(KHDR_INCLUDES) -Wall -O2 TEST_GEN_FILES += move_mount_set_group_test -- 2.39.2 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel