Skip to contentSkip to conversation

selftests/pidfd: Fix comment typo already covered by spelling.txt

PATCH New Ziyu Chen 2 participants 3 messages Jan 21

Subsystems (2)
lore
Share & tools
lore

Ziyu Chen

author
#0 lore raw

PATCH 1/1 selftests/pidfd: Fix comment typo already covered by spelling.txt

Fix a minor spelling issue in a comment in the pidfd info selftest. This typo is already listed in scripts/spelling.txt, but fixing it locally improves readability and avoids repeated reports.

No functional change intended.

---
 tools/testing/selftests/pidfd/pidfd_info_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/pidfd/pidfd_info_test.c +1 -1
index 6571e04acd88..be4eab64c4e1 100644
@@ -229,7 +229,7 @@ static void *pidfd_info_pause_thread(void *arg)
 
 	close(ipc_socket);
 
-	/* Sleep untill we're killed. */
+	/* Sleep until we'rekilled. */
 	pause();
 	return NULL;
 }
Signature · 1 line
2.20.1
author
#1 lore raw

PATCH v2 1/1 selftests/pidfd: fix typo in comment

Fix the typo "untill" → "until" in a comment in pidfd_info_test.c.

This typo is already listed in scripts/spelling.txt by commit 66b47b4a9dad ("checkpatch: look for common misspellings").

---
v2:
- Fix unintended whitespace removal in the comment ("we're killed").

 tools/testing/selftests/pidfd/pidfd_info_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/pidfd/pidfd_info_test.c +1 -1
index 6571e04acd88..8bed951e06a0 100644
@@ -229,7 +229,7 @@ static void *pidfd_info_pause_thread(void *arg)
 
 	close(ipc_socket);
 
-	/* Sleep untill we're killed. */
+	/* Sleep until we're killed. */
 	pause();
 	return NULL;
 }
Signature · 1 line
2.20.1
maintainer
#2 lore raw

Re: [PATCH v2] selftests/pidfd: fix typo in comment

Quoted 18 lines · Ziyu Chen

Fix the typo "untill" → "until" in a comment in pidfd_info_test.c.

This typo is already listed in scripts/spelling.txt by commit 66b47b4a9dad ("checkpatch: look for common misspellings").

---
v2:
- Fix unintended whitespace removal in the comment ("we're killed").

  tools/testing/selftests/pidfd/pidfd_info_test.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/pidfd/pidfd_info_test.c +0 -0
index 6571e04acd88..8bed951e06a0 100644

tools/testing/selftests/pidfd/pidfd_info_test.c static void *pidfd_info_pause_thread(void *arg) · line 235

Quoted 8 lines
tools/testing/selftests/pidfd/pidfd_info_test.c +1 -1
@@ -229,7 +229,7 @@ static void *pidfd_info_pause_thread(void *arg)
 
  	close(ipc_socket);
 
-	/* Sleep untill we're killed. */
+	/* Sleep until we're killed. */
  	pause();
  	return NULL;
  }

Applied to linux-kselftest next for the next release

thanks,
-- Shuah