* + tools-testing-support-extra_cflags-in-sharedmk.patch added to mm-new branch
@ 2025-08-28 23:02 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-08-28 23:02 UTC (permalink / raw)
To: mm-commits, vbabka, pfalcato, lorenzo.stoakes, Liam.Howlett,
jannh, jackmanb, akpm
The patch titled
Subject: tools: testing: support EXTRA_CFLAGS in shared.mk
has been added to the -mm mm-new branch. Its filename is
tools-testing-support-extra_cflags-in-sharedmk.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/tools-testing-support-extra_cflags-in-sharedmk.patch
This patch will later appear in the mm-new branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews. Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.
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: Brendan Jackman <jackmanb@google.com>
Subject: tools: testing: support EXTRA_CFLAGS in shared.mk
Date: Thu, 28 Aug 2025 12:28:00 +0000
This allows the user to set cflags when building tests that use this
shared build infrastructure.
For example, it enables building with -Werror so that patch-check scripts
will fail:
make -C tools/testing/vma -j EXTRA_CFLAGS=-Werror
Link: https://lkml.kernel.org/r/20250828-b4-vma-no-atomic-h-v2-3-02d146a58ed2@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Acked-by: Pedro Falcato <pfalcato@suse.de>
Cc: Jann Horn <jannh@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
tools/testing/shared/shared.mk | 1 +
1 file changed, 1 insertion(+)
--- a/tools/testing/shared/shared.mk~tools-testing-support-extra_cflags-in-sharedmk
+++ a/tools/testing/shared/shared.mk
@@ -4,6 +4,7 @@ include ../../scripts/Makefile.arch
CFLAGS += -I../shared -I. -I../../include -I../../arch/$(SRCARCH)/include \
-I../../../lib -g -Og -Wall \
-D_LGPL_SOURCE -fsanitize=address -fsanitize=undefined
+CFLAGS += $(EXTRA_CFLAGS)
LDFLAGS += -fsanitize=address -fsanitize=undefined
LDLIBS += -lpthread -lurcu
LIBS := slab.o find_bit.o bitmap.o hweight.o vsprintf.o
_
Patches currently in -mm which might be from jackmanb@google.com are
mm-remove-is_migrate_highatomic.patch
mm-page_alloc-harmonize-should_compact_retry-type.patch
tools-include-implement-a-couple-of-atomic_t-ops.patch
tools-testing-allow-importing-arch-headers-in-sharedmk.patch
tools-testing-support-extra_cflags-in-sharedmk.patch
tools-testing-use-existing-atomich-for-vma-maple-tests.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-28 23:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28 23:02 + tools-testing-support-extra_cflags-in-sharedmk.patch added to mm-new branch Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).