selftests-mm-hugetlb_madv_vs_map-use-kselftest-framework.patch removed from -mm tree
The quilt patch titled
Subject: selftests/mm: hugetlb_madv_vs_map: use kselftest framework
has been removed from the -mm tree. Its filename was
selftests-mm-hugetlb_madv_vs_map-use-kselftest-framework.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: "Mike Rapoport (Microsoft)" <[email protected]>
Subject: selftests/mm: hugetlb_madv_vs_map: use kselftest framework
Date: Mon, 11 May 2026 19:27:55 +0300
Convert hugetlb_madv_vs_map test to use kselftest framework for reporting and tracking successful and failing runs.
Signed-off-by Mike Rapoport (Microsoft) <[email protected]>
Reviewed-by Mark Brown <[email protected]>
Reviewed-by Donet Tom <[email protected]>
Tested-by Luiz Capitulino <[email protected]>
Cc Baolin Wang <[email protected]>
Cc Barry Song <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Dev Jain <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc John Hubbard <[email protected]>
Cc Lance Yang <[email protected]>
Cc Leon Romanovsky <[email protected]>
Cc Liam Howlett <[email protected]>
Cc Li Wang <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Nico Pache <[email protected]>
Cc Peter Xu <[email protected]>
Cc Ryan Roberts <[email protected]>
Cc Sarthak Sharma <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Zi Yan <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
tools/testing/selftests/mm/hugetlb_madv_vs_map.c | 18 ++++++------- 1 file changed, 9 insertions(+), 9 deletions(-)
tools/testing/selftests/mm/hugetlb_madv_vs_map.c renamed from tools/testing/selftests/mm/hugetlb_madv_vs_map.c~selftests-mm-hugetlb_madv_vs_map-use-kselftest-framework +9 -9
@@ -25,7 +25,6 @@#include <unistd.h> #include "vm_util.h" -#include "kselftest.h" #define INLOOP_ITER 100
@@ -86,12 +85,14 @@ int main(void)*/ int max =10 ; +ksft_print_header (); +ksft_set_plan (1 ); + free_hugepages =get_free_hugepages (); -if (free_hugepages !=1 ) { +if (free_hugepages !=1 )ksft_exit_skip ("This test needs one and only one page to execute. Got %lu\n" , free_hugepages); - } mmap_size =default_huge_page_size ();
@@ -100,10 +101,8 @@ int main(void)MAP_PRIVATE |MAP_ANONYMOUS |MAP_HUGETLB , -1, 0); -if ((unsigned long )huge_ptr ==-1 ) { -ksft_test_result_fail ("Failed to allocate huge page\n" ); -return KSFT_FAIL ; - } +if ((unsigned long )huge_ptr ==-1 ) +ksft_exit_fail_msg ("Failed to allocate huge page\n" );pthread_create (&thread1,NULL , madv,NULL );pthread_create (&thread2,NULL , touch,NULL );
@@ -115,12 +114,13 @@ int main(void)if (ret) {ksft_test_result_fail ("Unexpected huge page allocation\n" ); -return KSFT_FAIL ; +ksft_finished (); }/* Unmap and restart */ munmap (huge_ptr, mmap_size); } -return KSFT_PASS ; +ksft_test_result_pass ("No unexpected huge page allocations\n" ); +ksft_finished (); }
_
Patches currently in -mm which might be from [email protected] are