Skip to contentSkip to conversation

selftests-mm-guard-regions-use-skip-instead-of-ksft_exit_skip.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 25, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: selftests/mm: guard-regions: Use SKIP() instead of ksft_exit_skip()
has been removed from the -mm tree. Its filename was
selftests-mm-guard-regions-use-skip-instead-of-ksft_exit_skip.patch

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

------------------------------------------------------
From: wang lian <[email protected]>
Subject: selftests/mm: guard-regions: Use SKIP() instead of ksft_exit_skip()
Date: Thu, 17 Jul 2025 21:18:57 +0800

To ensure only the current test is skipped on permission failure, instead of terminating the entire test binary.

---

 tools/testing/selftests/mm/guard-regions.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/mm/guard-regions.c renamed from tools/testing/selftests/mm/guard-regions.c~selftests-mm-guard-regions-use-skip-instead-of-ksft_exit_skip +1 -1
@@ -575,7 +575,7 @@ TEST_F(guard_regions, process_madvise)
 
 	/* OK we don't have permission to do this, skip. */
 	if (count == -1 && errno == EPERM)
-		ksft_exit_skip("No process_madvise() permissions, try running as root.\n");
+		SKIP(return, "No process_madvise() permissions, try running as root.\n");
 
 	/* Returns the number of bytes advised. */
 	ASSERT_EQ(count, 6 * page_size);

_

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

selftests-mm-add-process_madvise-tests.patch