[PATCH] printk: fix typos in comments

Naveen Kumar Chaudhary posted 1 patch 1 week ago
kernel/printk/nbcon.c  | 6 +++---
kernel/printk/printk.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
[PATCH] printk: fix typos in comments
Posted by Naveen Kumar Chaudhary 1 week ago
Fix spelling/grammatical errors in printk.c and nbcon.c:
- "precation" -> "precautionary"
- "othrewise" -> "otherwise"
- "An usable" -> "A usable"
- "made a progress" -> "made progress"
- "preemtible" -> "preemptible"
- "mechasism" -> "mechanism"
- "ownerhip" -> "ownership"

Signed-off-by: Naveen Kumar Chaudhary <naveen.osdev@gmail.com>
---
 kernel/printk/nbcon.c  | 6 +++---
 kernel/printk/printk.c | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/kernel/printk/nbcon.c b/kernel/printk/nbcon.c
index d7044a7a214b..4b03b019cd5e 100644
--- a/kernel/printk/nbcon.c
+++ b/kernel/printk/nbcon.c
@@ -1487,7 +1487,7 @@ bool nbcon_allow_unsafe_takeover(void)
  *		or write_thread().
  *
  *		When false, the write_thread() callback is used and would be
- *		called in a preemtible context unless disabled by the
+ *		called in a preemptible context unless disabled by the
  *		device_lock. The legacy handover is not allowed in this mode.
  *
  * Context:	Any context except NMI.
@@ -1868,7 +1868,7 @@ void nbcon_free(struct console *con)
  * Return:	True if the console was acquired. False otherwise.
  *
  * Console drivers will usually use their own internal synchronization
- * mechasism to synchronize between console printing and non-printing
+ * mechanism to synchronize between console printing and non-printing
  * activities (such as setting baud rates). However, nbcon console drivers
  * supporting atomic consoles may also want to mark unsafe sections when
  * performing non-printing activities in order to synchronize against their
@@ -1954,7 +1954,7 @@ EXPORT_SYMBOL_GPL(nbcon_device_release);
  *
  * kdb emits messages on consoles registered for printk() without
  * storing them into the ring buffer. It has to acquire the console
- * ownerhip so that it could call con->write_atomic() callback a safe way.
+ * ownership so that it could call con->write_atomic() callback a safe way.
  *
  * This function acquires the nbcon console using priority NBCON_PRIO_EMERGENCY
  * and marks it unsafe for handover/takeover.
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 0323149548f6..2fe9a963c823 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -188,7 +188,7 @@ static int __init control_devkmsg(char *str)
 	/*
 	 * Sysctl cannot change it anymore. The kernel command line setting of
 	 * this parameter is to force the setting to be permanent throughout the
-	 * runtime of the system. This is a precation measure against userspace
+	 * runtime of the system. This is a precautionary measure against userspace
 	 * trying to be a smarta** and attempting to change it up on us.
 	 */
 	devkmsg_log |= DEVKMSG_LOG_MASK_LOCK;
@@ -1975,7 +1975,7 @@ int console_lock_spinning_disable_and_check(int cookie)
  * the current owner is running and cannot reschedule until it
  * is ready to lose the lock.
  *
- * Return: 1 if we got the lock, 0 othrewise
+ * Return: 1 if we got the lock, 0 otherwise
  */
 static int console_trylock_spinning(void)
 {
@@ -3285,7 +3285,7 @@ static bool console_flush_one_record(bool do_cond_resched, u64 *next_seq, bool *
 			continue;
 
 		/*
-		 * An usable console made a progress. There might still be
+		 * A usable console made progress. There might still be
 		 * pending messages.
 		 */
 		*try_again = true;
-- 
2.43.0
Re: [PATCH] printk: fix typos in comments
Posted by Petr Mladek 5 days, 17 hours ago
On Mon 2026-06-01 09:26:26, Naveen Kumar Chaudhary wrote:
> Fix spelling/grammatical errors in printk.c and nbcon.c:
> - "precation" -> "precautionary"
> - "othrewise" -> "otherwise"
> - "An usable" -> "A usable"
> - "made a progress" -> "made progress"
> - "preemtible" -> "preemptible"
> - "mechasism" -> "mechanism"
> - "ownerhip" -> "ownership"
> 
> Signed-off-by: Naveen Kumar Chaudhary <naveen.osdev@gmail.com>

JFYI, the patch has been committed into printk/linux.git,
branch for-7.2.

Best Regards,
Petr