All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,shuah@kernel.org,akpm@linux-foundation.org,reddybalavignesh9979@gmail.com,akpm@linux-foundation.org
Subject: + selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch added to mm-nonmm-unstable branch
Date: Wed, 27 Aug 2025 15:56:34 -0700	[thread overview]
Message-ID: <20250827225634.B621FC4CEEB@smtp.kernel.org> (raw)


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


             reply	other threads:[~2025-08-27 22:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-27 22:56 Andrew Morton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-31 20:04 + selftests-centralize-include-path-for-kselftesth-and-kselftest_harnessh.patch added to mm-nonmm-unstable branch Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250827225634.B621FC4CEEB@smtp.kernel.org \
    --to=akpm@linux-foundation.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=reddybalavignesh9979@gmail.com \
    --cc=shuah@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.