From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 00D1E154425 for ; Wed, 14 May 2025 02:25:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747189506; cv=none; b=oWTu7umJRJ7/oWR9rwN7C74js+Q18MDzy6U8BDIJaVfoNFpna/hg79O3lJPFKeHkMDfc82wXIk+Tjm6j6kbRoYp8O4bFpPtvgK75sUrVaRhLlbfEtcb5fDf7fiUpLTBD22JKMPphKRclHDYp1/0UJtx5+ww5h0AQ9ryGTIMHHpg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747189506; c=relaxed/simple; bh=lFrDg22Ud9OcN9PdTKAQMx4gFWHATi3QHSPPGVvYlls=; h=Date:To:From:Subject:Message-Id; b=jBCdGl+JIwKvY4KL25MDnALKFccI98jTjDnL3jPJeKi0J6hO8Ofrw1MVbDwc90MqZaU6+SwLoeCHCT9tUOAGW+jPhBwijE7sAfkq2nZKr5fHCasqqTeLTu0OncGewyP6l7/NHl2V9etPCSGEHqzTUNNw/Qz64/BDZNiJrkCBtbw= 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=lGHbVEoG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="lGHbVEoG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52038C4CEED; Wed, 14 May 2025 02:25:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1747189505; bh=lFrDg22Ud9OcN9PdTKAQMx4gFWHATi3QHSPPGVvYlls=; h=Date:To:From:Subject:From; b=lGHbVEoGrejjKakM3XkR5B23OnAk6Uz9137gqkGURIYZWtDih/ANG28x2QQ7sXQrM jk9QY6ojmQyxzPNf9TPM5b5lA9RWFSMt0oNjlTPYiRdQ2i0C9XULiVga3q7BHQSBIO /b4cxl3qY2NdqLr0LdqM1V/VuxOIw+G+Z7gjUD0A= Date: Tue, 13 May 2025 19:25:04 -0700 To: mm-commits@vger.kernel.org,wen.yang@linux.dev,shuah@kernel.org,seokwoo.chung130@gmail.com,akpm@linux-foundation.org From: Andrew Morton Subject: + selftests-eventfd-correct-test-name-and-improve-messages.patch added to mm-new branch Message-Id: <20250514022505.52038C4CEED@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: selftests/eventfd: correct test name and improve messages has been added to the -mm mm-new branch. Its filename is selftests-eventfd-correct-test-name-and-improve-messages.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-eventfd-correct-test-name-and-improve-messages.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: Ryan Chung Subject: selftests/eventfd: correct test name and improve messages Date: Tue, 13 May 2025 16:44:11 +0900 - Rename test from eventfd_chek_flag_cloexec_and_nonblock to eventfd_check_flag_cloexec_and_nonblock. - Make the RDWR‐flag comment declarative: “The kernel automatically adds the O_RDWR flag.” - Update semaphore‐flag failure message to: “eventfd semaphore flag check failed: …” Link: https://lkml.kernel.org/r/20250513074411.6965-1-seokwoo.chung130@gmail.com Signed-off-by: Ryan Chung Reviewed-by: Wen Yang Cc: Shuah Khan Signed-off-by: Andrew Morton --- tools/testing/selftests/filesystems/eventfd/eventfd_test.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- a/tools/testing/selftests/filesystems/eventfd/eventfd_test.c~selftests-eventfd-correct-test-name-and-improve-messages +++ a/tools/testing/selftests/filesystems/eventfd/eventfd_test.c @@ -50,7 +50,7 @@ TEST(eventfd_check_flag_rdwr) ASSERT_GE(fd, 0); flags = fcntl(fd, F_GETFL); - // since the kernel automatically added O_RDWR. + // The kernel automatically adds the O_RDWR flag. EXPECT_EQ(flags, O_RDWR); close(fd); @@ -85,7 +85,7 @@ TEST(eventfd_check_flag_nonblock) close(fd); } -TEST(eventfd_chek_flag_cloexec_and_nonblock) +TEST(eventfd_check_flag_cloexec_and_nonblock) { int fd, flags; @@ -178,8 +178,7 @@ TEST(eventfd_check_flag_semaphore) // The semaphore could only be obtained from fdinfo. ret = verify_fdinfo(fd, &err, "eventfd-semaphore: ", 19, "1\n"); if (ret != 0) - ksft_print_msg("eventfd-semaphore check failed, msg: %s\n", - err.msg); + ksft_print_msg("eventfd semaphore flag check failed: %s\n", err.msg); EXPECT_EQ(ret, 0); close(fd); _ Patches currently in -mm which might be from seokwoo.chung130@gmail.com are selftests-eventfd-correct-test-name-and-improve-messages.patch