Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 875D4366560 for ; Sun, 21 Jun 2026 18:38:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782067128; cv=none; b=koizc7+s8Eod0eed7UXj1sv5r3iyHw8jIoMTeKCbTb6Fd4yayfDjYRcOiRV8rUjHiJtkIymThoBzGAXbOl3e6XboMiy2YvLY11EImXBIGx/qnkm0Lzaa1SC8lanOUWttXTTUTh6WV49W4dXDs/2z/+VXTmgreRoW4KzuV4yy+V0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782067128; c=relaxed/simple; bh=d7E8L0F4jd2R2m7TMG4tGrsxBv8ozlDVZvUkPL8ODgY=; h=Date:To:From:Subject:Message-Id; b=qwOgHCk6MkfUqT8VaGUdyY7vM3+OdGQqDXe4Iw4ecd0j8Fzs5kTAJaSOea1NOEyNsAbokzCa8b4t/nvtw6udFb9KBR3HinPpXTaQd71k1zOEA+CXk7qssPtQ/h0VN1QrtX+kQGAYhk/H0ku2l/ySHfClac3/IHlEKwzMbzEt4BY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=HIiEaKSH; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="HIiEaKSH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 614971F000E9; Sun, 21 Jun 2026 18:38:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1782067127; bh=6ntjJXchxS6wTqAb4Cp6l7exnOpFM4BJaVDc7ZVB6rU=; h=Date:To:From:Subject; b=HIiEaKSHXJehm4dhthsIoOmDVVhwdEefX27gfWCPQ1c7TLzXMjkFkhy5GtxLWi6eF 9LqsoQt3mo615to3MX4cSbwdyDuWQcNA5ShSwPKya9pIODng+XUzIGS0t3H8NTPbyU d9fm6boP7ibR5OX21xnLzJiHPu32hHUHdPmKYcYU= Date: Sun, 21 Jun 2026 11:38:47 -0700 To: mm-commits@vger.kernel.org,ziy@nvidia.com,vbabka@kernel.org,surenb@google.com,shuah@kernel.org,sarthak.sharma@arm.com,ryan.roberts@arm.com,peterx@redhat.com,npache@redhat.com,mhocko@suse.com,luizcap@redhat.com,ljs@kernel.org,li.wang@linux.dev,liam@infradead.org,leon@kernel.org,lance.yang@linux.dev,jhubbard@nvidia.com,jgg@ziepe.ca,donettom@linux.ibm.com,dev.jain@arm.com,david@kernel.org,broonie@kernel.org,baolin.wang@linux.alibaba.com,baohua@kernel.org,rppt@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] selftests-mm-hugetlb-shm-use-kselftest-framework.patch removed from -mm tree Message-Id: <20260621183847.614971F000E9@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: selftests/mm: hugetlb-shm: use kselftest framework has been removed from the -mm tree. Its filename was selftests-mm-hugetlb-shm-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)" Subject: selftests/mm: hugetlb-shm: use kselftest framework Date: Mon, 11 May 2026 19:27:52 +0300 Convert hugetlb-shm test to use kselftest framework for reporting and tracking successful and failing runs. Link: https://lore.kernel.org/20260511162840.375890-9-rppt@kernel.org Signed-off-by: Mike Rapoport (Microsoft) Reviewed-by: Donet Tom Reviewed-by: Mark Brown Tested-by: Sarthak Sharma Tested-by: Luiz Capitulino Cc: Baolin Wang Cc: Barry Song Cc: David Hildenbrand Cc: Dev Jain Cc: Jason Gunthorpe Cc: John Hubbard Cc: Lance Yang Cc: Leon Romanovsky Cc: Liam Howlett Cc: Li Wang Cc: Lorenzo Stoakes Cc: Michal Hocko Cc: Nico Pache Cc: Peter Xu Cc: Ryan Roberts Cc: Shuah Khan Cc: Suren Baghdasaryan Cc: Vlastimil Babka Cc: Zi Yan Signed-off-by: Andrew Morton --- tools/testing/selftests/mm/hugetlb-shm.c | 47 +++++++++------------ 1 file changed, 22 insertions(+), 25 deletions(-) --- a/tools/testing/selftests/mm/hugetlb-shm.c~selftests-mm-hugetlb-shm-use-kselftest-framework +++ a/tools/testing/selftests/mm/hugetlb-shm.c @@ -28,9 +28,9 @@ #include #include -#define LENGTH (256UL*1024*1024) +#include "vm_util.h" -#define dprintf(x) printf(x) +#define LENGTH (256UL*1024*1024) int main(void) { @@ -38,44 +38,41 @@ int main(void) unsigned long i; char *shmaddr; + ksft_print_header(); + ksft_set_plan(1); + shmid = shmget(2, LENGTH, SHM_HUGETLB | IPC_CREAT | SHM_R | SHM_W); - if (shmid < 0) { - perror("shmget"); - exit(1); - } - printf("shmid: 0x%x\n", shmid); + if (shmid < 0) + ksft_exit_fail_perror("shmget"); + + ksft_print_msg("shmid: 0x%x\n", shmid); shmaddr = shmat(shmid, NULL, 0); if (shmaddr == (char *)-1) { - perror("Shared memory attach failure"); + ksft_perror("Shared memory attach failure"); shmctl(shmid, IPC_RMID, NULL); - exit(2); + ksft_exit_fail(); } - printf("shmaddr: %p\n", shmaddr); + ksft_print_msg("shmaddr: %p\n", shmaddr); - dprintf("Starting the writes:\n"); - for (i = 0; i < LENGTH; i++) { + ksft_print_msg("Starting the writes:\n"); + for (i = 0; i < LENGTH; i++) shmaddr[i] = (char)(i); - if (!(i % (1024 * 1024))) - dprintf("."); - } - dprintf("\n"); - dprintf("Starting the Check..."); + ksft_print_msg("Starting the Check..."); for (i = 0; i < LENGTH; i++) - if (shmaddr[i] != (char)i) { - printf("\nIndex %lu mismatched\n", i); - exit(3); - } - dprintf("Done.\n"); + if (shmaddr[i] != (char)i) + ksft_exit_fail_msg("Data mismatch at index %lu\n", i); + ksft_print_msg("Done.\n"); if (shmdt((const void *)shmaddr) != 0) { - perror("Detach failure"); + ksft_perror("Detach failure"); shmctl(shmid, IPC_RMID, NULL); - exit(4); + ksft_exit_fail(); } shmctl(shmid, IPC_RMID, NULL); - return 0; + ksft_test_result_pass("hugepage using SysV shmget/shmat\n"); + ksft_finished(); } _ Patches currently in -mm which might be from rppt@kernel.org are