* [PATCH 6.2 0835/1001] selftests: x86: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0856/1001] selftests: sched: " Greg Kroah-Hartman
` (23 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit ac5ec90e94fe8eddb4499e51398640fa6a89d657 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/x86/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/x86/Makefile
+++ b/tools/testing/selftests/x86/Makefile
@@ -34,7 +34,7 @@ BINARIES_64 := $(TARGETS_C_64BIT_ALL:%=%
BINARIES_32 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_32))
BINARIES_64 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_64))
-CFLAGS := -O2 -g -std=gnu99 -pthread -Wall
+CFLAGS := -O2 -g -std=gnu99 -pthread -Wall $(KHDR_INCLUDES)
# call32_from_64 in thunks.S uses absolute addresses.
ifeq ($(CAN_BUILD_WITH_NOPIE),1)
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0856/1001] selftests: sched: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
2023-03-07 17:00 ` [PATCH 6.2 0835/1001] selftests: x86: Fix incorrect kernel headers search path Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0857/1001] selftests: core: " Greg Kroah-Hartman
` (22 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 0d2cace5af50806a6b32ab73d367b80e46acda0f 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/sched/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/sched/Makefile
+++ b/tools/testing/selftests/sched/Makefile
@@ -4,7 +4,7 @@ ifneq ($(shell $(CC) --version 2>&1 | he
CLANG_FLAGS += -no-integrated-as
endif
-CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -Wl,-rpath=./ \
+CFLAGS += -O2 -Wall -g -I./ $(KHDR_INCLUDES) -Wl,-rpath=./ \
$(CLANG_FLAGS)
LDLIBS += -lpthread
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0857/1001] selftests: core: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
2023-03-07 17:00 ` [PATCH 6.2 0835/1001] selftests: x86: Fix incorrect kernel headers search path Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0856/1001] selftests: sched: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0858/1001] selftests: pid_namespace: " Greg Kroah-Hartman
` (21 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 145df2fdc38f24b3e52e4c2a59b02d874a074fbd 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/core/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/core/Makefile
+++ b/tools/testing/selftests/core/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
-CFLAGS += -g -I../../../../usr/include/
+CFLAGS += -g $(KHDR_INCLUDES)
TEST_GEN_PROGS := close_range_test
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0858/1001] selftests: pid_namespace: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (2 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0857/1001] selftests: core: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0859/1001] selftests: arm64: " Greg Kroah-Hartman
` (20 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit e81ff69f66969a16a98a2e0977c1860f1c182c74 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/pid_namespace/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/pid_namespace/Makefile
+++ b/tools/testing/selftests/pid_namespace/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -g -I../../../../usr/include/
+CFLAGS += -g $(KHDR_INCLUDES)
TEST_GEN_PROGS = regression_enomem
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0859/1001] selftests: arm64: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (3 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0858/1001] selftests: pid_namespace: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0860/1001] selftests: clone3: " Greg Kroah-Hartman
` (19 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan, Catalin Marinas
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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@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+
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0860/1001] selftests: clone3: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (4 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0859/1001] selftests: arm64: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0861/1001] selftests: pidfd: " Greg Kroah-Hartman
` (18 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan, Christian Brauner
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 612cf4d283414a5ee2733db6608d917deb45fa46 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+
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
tools/testing/selftests/clone3/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/clone3/Makefile
+++ b/tools/testing/selftests/clone3/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -g -std=gnu99 -I../../../../usr/include/
+CFLAGS += -g -std=gnu99 $(KHDR_INCLUDES)
LDLIBS += -lcap
TEST_GEN_PROGS := clone3 clone3_clear_sighand clone3_set_tid \
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0861/1001] selftests: pidfd: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (5 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0860/1001] selftests: clone3: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0862/1001] selftests: membarrier: " Greg Kroah-Hartman
` (17 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 3f7d71768795c386019f2295c1986d00035c9f0f 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/pidfd/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/pidfd/Makefile
+++ b/tools/testing/selftests/pidfd/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
-CFLAGS += -g -I../../../../usr/include/ -pthread -Wall
+CFLAGS += -g $(KHDR_INCLUDES) -pthread -Wall
TEST_GEN_PROGS := pidfd_test pidfd_fdinfo_test pidfd_open_test \
pidfd_poll_test pidfd_wait pidfd_getfd_test pidfd_setns_test
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0862/1001] selftests: membarrier: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (6 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0861/1001] selftests: pidfd: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0863/1001] selftests: kcmp: " Greg Kroah-Hartman
` (16 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 498bb027726371ba4a94686d251f9be1d437573e 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/membarrier/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/membarrier/Makefile
+++ b/tools/testing/selftests/membarrier/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
-CFLAGS += -g -I../../../../usr/include/
+CFLAGS += -g $(KHDR_INCLUDES)
LDLIBS += -lpthread
TEST_GEN_PROGS := membarrier_test_single_thread \
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0863/1001] selftests: kcmp: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (7 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0862/1001] selftests: membarrier: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0864/1001] selftests: media_tests: " Greg Kroah-Hartman
` (15 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 5d74231a2caad259f6669d8d6112814cef6bcd60 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/kcmp/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0864/1001] selftests: media_tests: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (8 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0863/1001] selftests: kcmp: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0865/1001] selftests: gpio: " Greg Kroah-Hartman
` (14 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit f2f9592b736087f695230410fb8dc1afd3cafbbb 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/media_tests/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/media_tests/Makefile
+++ b/tools/testing/selftests/media_tests/Makefile
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
#
-CFLAGS += -I../ -I../../../../usr/include/
+CFLAGS += -I../ $(KHDR_INCLUDES)
TEST_GEN_PROGS := media_device_test media_device_open video_device_test
include ../lib.mk
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0865/1001] selftests: gpio: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (9 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0864/1001] selftests: media_tests: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0866/1001] selftests: filesystems: " Greg Kroah-Hartman
` (13 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 8bb9c1808628babcc7b99ec2439bf102379bd4ac 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/gpio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/gpio/Makefile
+++ b/tools/testing/selftests/gpio/Makefile
@@ -3,6 +3,6 @@
TEST_PROGS := gpio-mockup.sh gpio-sim.sh
TEST_FILES := gpio-mockup-sysfs.sh
TEST_GEN_PROGS_EXTENDED := gpio-mockup-cdev gpio-chip-info gpio-line-name
-CFLAGS += -O2 -g -Wall -I../../../../usr/include/ $(KHDR_INCLUDES)
+CFLAGS += -O2 -g -Wall $(KHDR_INCLUDES)
include ../lib.mk
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0866/1001] selftests: filesystems: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (10 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0865/1001] selftests: gpio: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0867/1001] selftests: user_events: " Greg Kroah-Hartman
` (12 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit c2d3cf3653a8ff6e4b402d55e7f84790ac08a8ad 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/filesystems/Makefile | 2 +-
tools/testing/selftests/filesystems/binderfs/Makefile | 2 +-
tools/testing/selftests/filesystems/epoll/Makefile | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--- a/tools/testing/selftests/filesystems/Makefile
+++ b/tools/testing/selftests/filesystems/Makefile
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -I../../../../usr/include/
+CFLAGS += $(KHDR_INCLUDES)
TEST_GEN_PROGS := devpts_pts
TEST_GEN_PROGS_EXTENDED := dnotify_test
--- a/tools/testing/selftests/filesystems/binderfs/Makefile
+++ b/tools/testing/selftests/filesystems/binderfs/Makefile
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -I../../../../../usr/include/ -pthread
+CFLAGS += $(KHDR_INCLUDES) -pthread
TEST_GEN_PROGS := binderfs_test
binderfs_test: binderfs_test.c ../../kselftest.h ../../kselftest_harness.h
--- a/tools/testing/selftests/filesystems/epoll/Makefile
+++ b/tools/testing/selftests/filesystems/epoll/Makefile
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -I../../../../../usr/include/
+CFLAGS += $(KHDR_INCLUDES)
LDLIBS += -lpthread
TEST_GEN_PROGS := epoll_wakeup_test
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0867/1001] selftests: user_events: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (11 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0866/1001] selftests: filesystems: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0868/1001] selftests: ptp: " Greg Kroah-Hartman
` (11 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit f3886fd28987c119a98493f625cb9940b5f1c9a0 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/user_events/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/user_events/Makefile
+++ b/tools/testing/selftests/user_events/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -Wl,-no-as-needed -Wall -I../../../../usr/include
+CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES)
LDLIBS += -lrt -lpthread -lm
TEST_GEN_PROGS = ftrace_test dyn_test perf_test
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0868/1001] selftests: ptp: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (12 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0867/1001] selftests: user_events: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0869/1001] selftests: sync: " Greg Kroah-Hartman
` (10 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 01ede99e9de16e7a1ed689c99f41022aa878f2f4 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/ptp/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/ptp/Makefile
+++ b/tools/testing/selftests/ptp/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -I../../../../usr/include/
+CFLAGS += $(KHDR_INCLUDES)
TEST_PROGS := testptp
LDLIBS += -lrt
all: $(TEST_PROGS)
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0869/1001] selftests: sync: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (13 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0868/1001] selftests: ptp: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0870/1001] selftests: rseq: " Greg Kroah-Hartman
` (9 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 5ad0c8e42c13623bd996e19ce76f2596e16eb0db 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+
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
tools/testing/selftests/sync/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/sync/Makefile
+++ b/tools/testing/selftests/sync/Makefile
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
CFLAGS += -O2 -g -std=gnu89 -pthread -Wall -Wextra
-CFLAGS += -I../../../../usr/include/
+CFLAGS += $(KHDR_INCLUDES)
LDFLAGS += -pthread
.PHONY: all clean
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0870/1001] selftests: rseq: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (14 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0869/1001] selftests: sync: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0871/1001] selftests: move_mount_set_group: " Greg Kroah-Hartman
` (8 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 2279bfc03211045c8f43a76b01889a5ca86acd5a 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/rseq/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/rseq/Makefile
+++ b/tools/testing/selftests/rseq/Makefile
@@ -4,7 +4,7 @@ ifneq ($(shell $(CC) --version 2>&1 | he
CLANG_FLAGS += -no-integrated-as
endif
-CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -L$(OUTPUT) -Wl,-rpath=./ \
+CFLAGS += -O2 -Wall -g -I./ $(KHDR_INCLUDES) -L$(OUTPUT) -Wl,-rpath=./ \
$(CLANG_FLAGS)
LDLIBS += -lpthread -ldl
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0871/1001] selftests: move_mount_set_group: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (15 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0870/1001] selftests: rseq: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0872/1001] selftests: mount_setattr: " Greg Kroah-Hartman
` (7 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 65c68af0131bfef8e395c325735b6c40638cb931 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/move_mount_set_group/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0872/1001] selftests: mount_setattr: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (16 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0871/1001] selftests: move_mount_set_group: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0873/1001] selftests: perf_events: " Greg Kroah-Hartman
` (6 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 5d11f2d0eb39d2b5c5e8f05e1f650c4a4de69918 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/mount_setattr/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/mount_setattr/Makefile
+++ b/tools/testing/selftests/mount_setattr/Makefile
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
# Makefile for mount selftests.
-CFLAGS = -g -I../../../../usr/include/ -Wall -O2 -pthread
+CFLAGS = -g $(KHDR_INCLUDES) -Wall -O2 -pthread
TEST_GEN_FILES += mount_setattr_test
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0873/1001] selftests: perf_events: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (17 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0872/1001] selftests: mount_setattr: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0874/1001] selftests: ipc: " Greg Kroah-Hartman
` (5 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 465cbb1b9a9fd5f6907adb2d761facaf1a46bfbe 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/perf_events/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/perf_events/Makefile
+++ b/tools/testing/selftests/perf_events/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -Wl,-no-as-needed -Wall -I../../../../usr/include
+CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES)
LDFLAGS += -lpthread
TEST_GEN_PROGS := sigtrap_threads remove_on_exec
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0874/1001] selftests: ipc: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (18 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0873/1001] selftests: perf_events: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0875/1001] selftests: futex: " Greg Kroah-Hartman
` (4 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit ecf9fdb5c2a9d63c732acccb6318feb73dd1589f 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/ipc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/ipc/Makefile
+++ b/tools/testing/selftests/ipc/Makefile
@@ -10,7 +10,7 @@ ifeq ($(ARCH),x86_64)
CFLAGS := -DCONFIG_X86_64 -D__x86_64__
endif
-CFLAGS += -I../../../../usr/include/
+CFLAGS += $(KHDR_INCLUDES)
TEST_GEN_PROGS := msgque
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0875/1001] selftests: futex: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (19 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0874/1001] selftests: ipc: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0876/1001] selftests: drivers: " Greg Kroah-Hartman
` (3 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 24c55275ba0d538def2b1220002d0e808a85d50f 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/futex/functional/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/futex/functional/Makefile
+++ b/tools/testing/selftests/futex/functional/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-INCLUDES := -I../include -I../../ -I../../../../../usr/include/
+INCLUDES := -I../include -I../../ $(KHDR_INCLUDES)
CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) $(KHDR_INCLUDES)
LDLIBS := -lpthread -lrt
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0876/1001] selftests: drivers: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (20 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0875/1001] selftests: futex: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0877/1001] selftests: dmabuf-heaps: " Greg Kroah-Hartman
` (2 subsequent siblings)
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 07f0148aafe8c95a3a76cd59e9e75b4d78d1d31d 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/drivers/dma-buf/Makefile | 2 +-
tools/testing/selftests/drivers/s390x/uvdevice/Makefile | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
--- a/tools/testing/selftests/drivers/dma-buf/Makefile
+++ b/tools/testing/selftests/drivers/dma-buf/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-only
-CFLAGS += -I../../../../../usr/include/
+CFLAGS += $(KHDR_INCLUDES)
TEST_GEN_PROGS := udmabuf
--- a/tools/testing/selftests/drivers/s390x/uvdevice/Makefile
+++ b/tools/testing/selftests/drivers/s390x/uvdevice/Makefile
@@ -11,10 +11,9 @@ else
TEST_GEN_PROGS := test_uvdevice
top_srcdir ?= ../../../../../..
-khdr_dir = $(top_srcdir)/usr/include
LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include
-CFLAGS += -Wall -Werror -static -I$(khdr_dir) -I$(LINUX_TOOL_ARCH_INCLUDE)
+CFLAGS += -Wall -Werror -static $(KHDR_INCLUDES) -I$(LINUX_TOOL_ARCH_INCLUDE)
include ../../../lib.mk
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0877/1001] selftests: dmabuf-heaps: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (21 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0876/1001] selftests: drivers: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0878/1001] selftests: vm: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0879/1001] selftests: seccomp: " Greg Kroah-Hartman
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit f80f09b59fdd45753dd80ac623981ad00ece4c2d 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/dmabuf-heaps/Makefile | 2 +-
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
--- a/tools/testing/selftests/dmabuf-heaps/Makefile
+++ b/tools/testing/selftests/dmabuf-heaps/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -static -O3 -Wl,-no-as-needed -Wall
+CFLAGS += -static -O3 -Wl,-no-as-needed -Wall $(KHDR_INCLUDES)
TEST_GEN_PROGS = dmabuf-heap
--- a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
+++ b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
@@ -13,10 +13,9 @@
#include <sys/types.h>
#include <linux/dma-buf.h>
+#include <linux/dma-heap.h>
#include <drm/drm.h>
-#include "../../../../include/uapi/linux/dma-heap.h"
-
#define DEVPATH "/dev/dma_heap"
static int check_vgem(int fd)
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0878/1001] selftests: vm: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (22 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0877/1001] selftests: dmabuf-heaps: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0879/1001] selftests: seccomp: " Greg Kroah-Hartman
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/vm/Makefile
+++ b/tools/testing/selftests/vm/Makefile
@@ -25,7 +25,7 @@ MACHINE ?= $(shell echo $(uname_M) | sed
# LDLIBS.
MAKEFLAGS += --no-builtin-rules
-CFLAGS = -Wall -I $(top_srcdir) -I $(top_srcdir)/usr/include $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
+CFLAGS = -Wall -I $(top_srcdir) $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
LDLIBS = -lrt -lpthread
TEST_GEN_FILES = cow
TEST_GEN_FILES += compaction_test
^ permalink raw reply [flat|nested] 25+ messages in thread
* [PATCH 6.2 0879/1001] selftests: seccomp: Fix incorrect kernel headers search path
[not found] <20230307170022.094103862@linuxfoundation.org>
` (23 preceding siblings ...)
2023-03-07 17:00 ` [PATCH 6.2 0878/1001] selftests: vm: " Greg Kroah-Hartman
@ 2023-03-07 17:00 ` Greg Kroah-Hartman
24 siblings, 0 replies; 25+ messages in thread
From: Greg Kroah-Hartman @ 2023-03-07 17:00 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mathieu Desnoyers, Shuah Khan,
linux-kselftest, Ingo Molnar, Shuah Khan
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
commit 07d42dd854446ba3177ad7a217870a5b4edee165 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/seccomp/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/testing/selftests/seccomp/Makefile
+++ b/tools/testing/selftests/seccomp/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -Wl,-no-as-needed -Wall -isystem ../../../../usr/include/
+CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES)
LDFLAGS += -lpthread
LDLIBS += -lcap
^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2023-03-07 17:58 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230307170022.094103862@linuxfoundation.org>
2023-03-07 17:00 ` [PATCH 6.2 0835/1001] selftests: x86: Fix incorrect kernel headers search path Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0856/1001] selftests: sched: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0857/1001] selftests: core: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0858/1001] selftests: pid_namespace: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0859/1001] selftests: arm64: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0860/1001] selftests: clone3: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0861/1001] selftests: pidfd: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0862/1001] selftests: membarrier: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0863/1001] selftests: kcmp: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0864/1001] selftests: media_tests: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0865/1001] selftests: gpio: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0866/1001] selftests: filesystems: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0867/1001] selftests: user_events: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0868/1001] selftests: ptp: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0869/1001] selftests: sync: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0870/1001] selftests: rseq: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0871/1001] selftests: move_mount_set_group: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0872/1001] selftests: mount_setattr: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0873/1001] selftests: perf_events: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0874/1001] selftests: ipc: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0875/1001] selftests: futex: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0876/1001] selftests: drivers: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0877/1001] selftests: dmabuf-heaps: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0878/1001] selftests: vm: " Greg Kroah-Hartman
2023-03-07 17:00 ` [PATCH 6.2 0879/1001] selftests: seccomp: " Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox