Skip to contentSkip to conversation

kernel/printk/printk.c: Fix W=1 kernel-doc warning

PATCH In review Anuradha Weeraman 2 participants 2 messages Jan 16, 2023 Printk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/printk/printk.c: Fix W=1 kernel-doc warning

Fix W=1 kernel-doc warning:

kernel/printk/printk.c:
- Include function parameter in console_lock_spinning_disable_and_check()

---
 kernel/printk/printk.c | 1 +
 1 file changed, 1 insertion(+)
kernel/printk/printk.c +1 -0
index 7decf1e9c486..557eba131210 100644
@@ -1891,6 +1891,7 @@ static void console_lock_spinning_enable(void)
 /**
  * console_lock_spinning_disable_and_check - mark end of code where another
  *	thread was able to busy wait and check if there is a waiter
+ * @cookie: cookie returned from console_srcu_read_lock()
  *
  * This is called at the end of the section where spinning is allowed.
  * It has two functions. First, it is a signal that it is no longer
Signature · 1 line
2.39.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Anuradha Weeraman

Fix W=1 kernel-doc warning:

kernel/printk/printk.c:
- Include function parameter in console_lock_spinning_disable_and_check()

Great catch!

JFYI, the patch has been comitted into printk/linux.git, branch rework//console-list-lock.

I am going to add it into a pull request for 6.2-rc5 together with another related fix.

Best Regards,
Petr