Skip to contentSkip to conversation

resource-kunit-stop-selecting-get_free_region.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 2 participants 2 messages Oct 11 – Oct 13

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: resource, kunit: stop selecting GET_FREE_REGION
has been removed from the -mm tree. Its filename was
resource-kunit-stop-selecting-get_free_region.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Karl Mehltretter <[email protected]>
Subject: resource, kunit: stop selecting GET_FREE_REGION
Date: Sat, 26 Sep 2026 02:26:51 +0200

RESOURCE_KUNIT_TEST selects GET_FREE_REGION even when no other option needs it. Remove the selection to follow the dependency rule in Documentation/dev-tools/kunit/style.rst.

Skip resource_test_region_intersects() when GET_FREE_REGION is disabled. GET_FREE_REGION has no prompt, so configurations without a production consumer cannot enable it. Most configurations will therefore skip this case; this is intentional. The union and intersection tests remain available.

Since kunit_skip() does not return, the compiler drops the reference to the unavailable alloc_free_mem_region(), as in the CONFIG_OF_ADDRESS check in drivers/of/of_test.c.

Fixes 99185c10d5d9 ("resource, kunit: add test case for region_intersects()")
Assisted-by LLM
Cc Ying Huang <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Brendan Higgins <[email protected]>
Cc David Gow <[email protected]>
Cc Rae Moar <[email protected]>
Cc Andy Shevchenko <[email protected]>

---

 kernel/resource_kunit.c |    3 +++
 lib/Kconfig.debug       |    1 -
 2 files changed, 3 insertions(+), 1 deletion(-)
kernel/resource_kunit.c renamed from kernel/resource_kunit.c~resource-kunit-stop-selecting-get_free_region +3 -0
@@ -225,6 +225,9 @@ static void resource_test_region_interse
 	struct resource *parent;
 	resource_size_t start;
 
+	if (!IS_ENABLED(CONFIG_GET_FREE_REGION))
+		kunit_skip(test, "CONFIG_GET_FREE_REGION is disabled");
+
 	/* Find an iomem_resource hole to hold test resources */
 	parent = alloc_free_mem_region(&iomem_resource, RES_TEST_TOTAL_SIZE, SZ_1M,
 				       "test resources");
lib/Kconfig.debug renamed from lib/Kconfig.debug~resource-kunit-stop-selecting-get_free_region +0 -1
@@ -2776,7 +2776,6 @@ config RESOURCE_KUNIT_TEST
 	tristate "KUnit test for resource API" if !KUNIT_ALL_TESTS
 	depends on KUNIT
 	default KUNIT_ALL_TESTS
-	select GET_FREE_REGION
 	help
 	  This builds the resource API unit test.
 	  Tests the logic of API provided by resource.c and ioport.h.

_

Patches currently in -mm which might be from [email protected] are

mm-secretmem-fix-the-enable-parameter-description.patch mm-damon-core-preserve-the-quota-passed-to-damon_new_scheme.patch mm-damon-tests-core-kunit-test-preservation-of-quota-state.patch mm-damon-tests-core-kunit-test-psi-goal-values-with-explicit-samples.patch squashfs-fix-fragment-index-table-sizing-overflow-on-32-bit.patch squashfs-make-the-fragment-index-table-bounds-check-overflow-safe.patch

#1 lore raw

On Sun, Oct 11, 2026 at 03:20:05PM -0700, Andrew Morton wrote:

...

Quoted 4 lines

I'm wondering if it will be a big deal to you to add to your scripts something that will emit a '---' line here (before Cc list). This will reduce a lot of noise in the commit messages, especially when the Cc list is hypothetically 20 lines while commit message hypothetically only 3. Note, that emails will be still send as usual (in case you use some kind of git send-email or b4.

Quoted 8 lines
Cc Ying Huang <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Brendan Higgins <[email protected]>
Cc David Gow <[email protected]>
Cc Rae Moar <[email protected]>
Cc Andy Shevchenko <[email protected]>

---

Signature · 2 lines
With Best Regards,
Andy Shevchenko