* + selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch added to mm-nonmm-unstable branch
@ 2025-08-27 22:56 Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2025-08-27 22:56 UTC (permalink / raw)
To: mm-commits, shuah, akpm, reddybalavignesh9979, akpm
The patch titled
Subject: selftests: centralize include path for kselftest.h and kselftest_harness.h
has been added to the -mm mm-nonmm-unstable branch. Its filename is
selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Subject: selftests: centralize include path for kselftest.h and kselftest_harness.h
Date: Wed, 27 Aug 2025 20:17:32 +0530
Patch series "selftests: Centralize kselftest headers to avoid relative
includes".
This series centralizes the handling of kselftest.h and
kselftest_harness.h includes in selftests, replacing relative paths with a
non-relative approach using shared -I path.
Patch 1 updates the build files (Makefile and lib.mk) and include CFLAGS
in sync/Makefile to resolve not found errors.
Patch 2 applies bulk source change (patch 2 is large but it is replaced
automatically).
This patch (of 2):
Add compile flag in Makefile and export it in lib.mk. Also add CFLAGS in
the Makefile rules to fix include path errors for kselftest.h.
Link: https://lore.kernel.org/lkml/20250820143954.33d95635e504e94df01930d0@linux-foundation.org/
Link: https://lkml.kernel.org/r/20250827144733.82277-2-reddybalavignesh9979@gmail.com
Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
tools/testing/selftests/Makefile | 4 ++++
tools/testing/selftests/lib.mk | 2 ++
2 files changed, 6 insertions(+)
--- a/tools/testing/selftests/lib.mk~selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh
+++ a/tools/testing/selftests/lib.mk
@@ -199,6 +199,8 @@ clean: $(if $(TEST_GEN_MODS_DIR),clean_m
# Build with _GNU_SOURCE by default
CFLAGS += -D_GNU_SOURCE=
+CFLAGS += $(KSFT_INCLUDES)
+
# Enables to extend CFLAGS and LDFLAGS from command line, e.g.
# make USERCFLAGS=-Werror USERLDFLAGS=-static
CFLAGS += $(USERCFLAGS)
--- a/tools/testing/selftests/Makefile~selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh
+++ a/tools/testing/selftests/Makefile
@@ -194,11 +194,15 @@ else
DEFAULT_INSTALL_HDR_PATH := 1
endif
+# Include path for kselftest.h
+KSFT_INCLUDES := -I${abs_srctree}/tools/testing/selftests
+
# Prepare for headers install
include $(top_srcdir)/scripts/subarch.include
ARCH ?= $(SUBARCH)
export BUILD
export KHDR_INCLUDES
+export KSFT_INCLUDES
# set default goal to all, so make without a target runs all, even when
# all isn't the first target in the file.
_
Patches currently in -mm which might be from reddybalavignesh9979@gmail.com are
selftests-centralise-maybe-unused-definition-in-kselftesth.patch
selftests-proc-mark-vsyscall-strings-maybe-unused.patch
selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch
selftests-replace-relative-includes-with-non-relative-for-kselftesth-and-kselftest_harnessh.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* + selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch added to mm-nonmm-unstable branch
@ 2025-08-31 20:04 Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2025-08-31 20:04 UTC (permalink / raw)
To: mm-commits, vbabka, surenb, shuah, rppt, richard.weiyang, pabeni,
ming.lei, mic, mhocko, lorenzo.stoakes, liam.howlett, kuba, horms,
gnoack, edumazet, david, davem, reddybalavignesh9979, akpm
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3275 bytes --]
The patch titled
Subject: selftests: centralize include path for kselftest.h and kselftest_harness.h
has been added to the -mm mm-nonmm-unstable branch. Its filename is
selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Subject: selftests: centralize include path for kselftest.h and kselftest_harness.h
Date: Sat, 30 Aug 2025 22:09:48 +0530
Add compile flag in lib.mk, to include the selftest/ directory while
building.
Link: https://lkml.kernel.org/r/20250830163949.20952-2-reddybalavignesh9979@gmail.com
Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Suggested-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Günther Noack <gnoack@google.com>
Cc: Jakub Kacinski <kuba@kernel.org>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mickael Salaun <mic@digikod.net>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Simon Horman <horms@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
tools/testing/selftests/lib.mk | 2 ++
1 file changed, 2 insertions(+)
--- a/tools/testing/selftests/lib.mk~selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh
+++ a/tools/testing/selftests/lib.mk
@@ -199,6 +199,8 @@ clean: $(if $(TEST_GEN_MODS_DIR),clean_m
# Build with _GNU_SOURCE by default
CFLAGS += -D_GNU_SOURCE=
+CFLAGS += -I${top_srcdir}/tools/testing/selftests
+
# Enables to extend CFLAGS and LDFLAGS from command line, e.g.
# make USERCFLAGS=-Werror USERLDFLAGS=-static
CFLAGS += $(USERCFLAGS)
_
Patches currently in -mm which might be from reddybalavignesh9979@gmail.com are
selftests-centralise-maybe-unused-definition-in-kselftesth.patch
selftests-proc-mark-vsyscall-strings-maybe-unused.patch
selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch
selftests-replace-relative-includes-with-non-relative-for-kselftesth-and-kselftest_harnessh.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-31 20:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27 22:56 + selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch added to mm-nonmm-unstable branch Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2025-08-31 20:04 Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.