This is a note to let you know that I've just added the patch titled selftests: arm64: Fix incorrect kernel headers search path to the 6.2-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: selftests-arm64-fix-incorrect-kernel-headers-search-path.patch and it can be found in the queue-6.2 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 7482c19173b7eb044d476b3444d7ee55bc669d03 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> Date: Fri, 27 Jan 2023 08:57:22 -0500 Subject: selftests: arm64: Fix incorrect kernel headers search path From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> commit 7482c19173b7eb044d476b3444d7ee55bc669d03 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@xxxxxxxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Cc: linux-kselftest@xxxxxxxxxxxxxxx Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> # 5.18+ Acked-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx> Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx> Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/arm64/fp/Makefile | 2 +- tools/testing/selftests/arm64/tags/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -3,7 +3,7 @@ # A proper top_srcdir is needed by KSFT(lib.mk) top_srcdir = $(realpath ../../../../../) -CFLAGS += -I$(top_srcdir)/usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := fp-stress \ sve-ptrace sve-probe-vls \ --- a/tools/testing/selftests/arm64/tags/Makefile +++ b/tools/testing/selftests/arm64/tags/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := tags_test TEST_PROGS := run_tags_test.sh Patches currently in stable-queue which might be from mathieu.desnoyers@xxxxxxxxxxxx are queue-6.2/srcu-delegate-work-to-the-boot-cpu-if-using-srcu_siz.patch queue-6.2/selftests-filesystems-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-ipc-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-seccomp-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-kcmp-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-x86-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-perf_events-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-arm64-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-sched-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-dmabuf-heaps-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-futex-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-sync-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-vm-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-media_tests-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-gpio-fix-incorrect-kernel-headers-search-path.patch queue-6.2/rcu-make-rcu_lockdep_warn-avoid-early-lockdep-checks.patch queue-6.2/selftests-membarrier-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-mount_setattr-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-rseq-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-core-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-user_events-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-powerpc-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-clone3-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-ptp-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-drivers-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-move_mount_set_group-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-pid_namespace-fix-incorrect-kernel-headers-search-path.patch queue-6.2/selftests-pidfd-fix-incorrect-kernel-headers-search-path.patch