]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
printk: fix typos in comments
authorNaveen Kumar Chaudhary <naveen.osdev@gmail.com>
Mon, 1 Jun 2026 03:56:26 +0000 (09:26 +0530)
committerPetr Mladek <pmladek@suse.com>
Tue, 2 Jun 2026 13:36:06 +0000 (15:36 +0200)
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>
Link: https://patch.msgid.link/pakfewagyzb7da3yuxnaxdaoma5w4j2c7i3xebmcld3xy4mqs5@zxsx2idpxrdq
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/nbcon.c
kernel/printk/printk.c

index d7044a7a214bdd4537a5e20d876d99bc3ffe8b3a..4b03b019cd5ee25d68e9ace84392045e91241a7f 100644 (file)
@@ -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.
index 0323149548f6a4dbcdd80029478b809d44de9b62..2fe9a963c823a41e7df10c29939a2abb55462859 100644 (file)
@@ -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;