Thread (14 messages) 14 messages, 2 authors, 2025-02-26
STALE512d REVIEWED: 4 (4M)

[PATCH v3 04/12] reboot: describe do_kernel_restart's cmd argument in kernel-doc

From: Ahmad Fatoum <a.fatoum@pengutronix.de>
Date: 2025-02-17 20:40:42
Also in: chrome-platform, linux-devicetree, linux-doc, linux-pm, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

A W=1 build rightfully complains about the function's kernel-doc
being incomplete.

Describe its single parameter to fix this.

Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 kernel/reboot.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/kernel/reboot.c b/kernel/reboot.c
index f348f1ba9e22675ac1183149ba19f39be12edacd..6185cfe5d4ee910daf057884a7ff8dcf1e80df28 100644
--- a/kernel/reboot.c
+++ b/kernel/reboot.c
@@ -229,6 +229,9 @@ EXPORT_SYMBOL(unregister_restart_handler);
 /**
  *	do_kernel_restart - Execute kernel restart handler call chain
  *
+ *	@cmd: pointer to buffer containing command to execute for restart
+ *		or %NULL
+ *
  *	Calls functions registered with register_restart_handler.
  *
  *	Expected to be called from machine_restart as last step of the restart
-- 
2.39.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help