watchdog: fix syntactic kernel-doc issues
PATCH 1/1 watchdog: fix syntactic kernel-doc issues
The command 'find drivers/watchdog | xargs ./scripts/kernel-doc -none' reports a number of kernel-doc warnings in the watchdog subsystem.
Address the kernel-doc warnings that were purely syntactic issues with kernel-doc comments.
The remaining kernel-doc warnings are of type "Excess function parameter" and "Function parameter or member not described". These warnings would need to be addressed in a second pass with a bit more insight into the APIs and purpose of the functions in the watchdog subsystem.
---
Guenter, Wim, please pick this minor clean-up patch.
drivers/watchdog/booke_wdt.c | 2 +- drivers/watchdog/eurotechwdt.c | 2 +- drivers/watchdog/mei_wdt.c | 8 ++++---- drivers/watchdog/octeon-wdt-main.c | 12 +++++++----- drivers/watchdog/pc87413_wdt.c | 2 +- drivers/watchdog/wdt.c | 4 ++-- drivers/watchdog/wdt_pci.c | 2 +- 7 files changed, 17 insertions(+), 15 deletions(-)
drivers/watchdog/booke_wdt.c +1 -1
@@ -148,7 +148,7 @@ static void __booke_wdt_enable(void *data) }/** -* booke_wdt_disable - disable the watchdog on the given CPU +* __booke_wdt_disable - disable the watchdog on the given CPU * * This function is called on each CPU. It disables the watchdog on that CPU. *
drivers/watchdog/eurotechwdt.c +1 -1
@@ -392,7 +392,7 @@ static struct notifier_block eurwdt_notifier = { };/** -* cleanup_module: +* eurwdt_exit: * * Unload the watchdog. You cannot do this with any file handles open. * If your watchdog is set to continue ticking on close and you unload
drivers/watchdog/mei_wdt.c +4 -4
@@ -105,7 +105,7 @@ struct mei_wdt {#endif /* CONFIG_DEBUG_FS */ }; -/* +/** * struct mei_mc_hdr - Management Control Command Header * * @command: Management Control (0x2)
@@ -121,7 +121,7 @@ struct mei_mc_hdr { };/** -* struct mei_wdt_start_request watchdog start/ping +* struct mei_wdt_start_request - watchdog start/ping * * @hdr: Management Control Command Header * @timeout: timeout value
@@ -134,7 +134,7 @@ struct mei_wdt_start_request { } __packed;/** -* struct mei_wdt_start_response watchdog start/ping response +* struct mei_wdt_start_response - watchdog start/ping response * * @hdr: Management Control Command Header * @status: operation status
@@ -474,7 +474,7 @@ static void mei_wdt_rx(struct mei_cl_device *cldev)complete (&wdt->response); } -/* +/** * mei_wdt_notif - callback for event notification * * @cldev: bus device
drivers/watchdog/octeon-wdt-main.c +7 -5
@@ -119,7 +119,7 @@ static int cpu2core(int cpu) }/** -* Poke the watchdog when an interrupt is received +* octeon_wdt_poke_irq - Poke the watchdog when an interrupt is received * * @cpl: * @dev_id:
@@ -153,7 +153,7 @@ static irqreturn_t octeon_wdt_poke_irq(int cpl, void *dev_id)extern int prom_putchar (char c);/** -* Write a string to the uart +* octeon_wdt_write_string - Write a string to the uart * * @str: String to write */
@@ -165,7 +165,7 @@ static void octeon_wdt_write_string(const char *str) }/** -* Write a hex number out of the uart +* octeon_wdt_write_hex() - Write a hex number out of the uart * * @value: Number to display * @digits: Number of digits to print (1 to 16)
@@ -192,6 +192,8 @@ static const char reg_name[][3] = { };/** +* octeon_wdt_nmi_stage3: +* * NMI stage 3 handler. NMIs are handled in the following manner: * 1) The first NMI handler enables CVMSEG and transfers from * the bootbus region into normal memory. It is careful to not
@@ -513,7 +515,7 @@ static struct watchdog_device octeon_wdt = {static enum cpuhp_state octeon_wdt_online;/** -* Module/ driver initialization. +* octeon_wdt_init - Module/ driver initialization. * * Returns Zero on success */
@@ -585,7 +587,7 @@ static int __init octeon_wdt_init(void) }/** -* Module / driver shutdown +* octeon_wdt_cleanup - Module / driver shutdown */ static void __exit octeon_wdt_cleanup(void) {
drivers/watchdog/pc87413_wdt.c +1 -1
@@ -445,7 +445,7 @@ static long pc87413_ioctl(struct file *file, unsigned int cmd,/* -- Notifier funtions -----------------------------------------*/ /** -* notify_sys: +* pc87413_notify_sys: * @this: our notifier block * @code: the event being reported * @unused: unused
drivers/watchdog/wdt.c +2 -2
@@ -494,7 +494,7 @@ static int wdt_temp_release(struct inode *inode, struct file *file) }/** -* notify_sys: +* wdt_notify_sys: * @this: our notifier block * @code: the event being reported * @unused: unused
@@ -558,7 +558,7 @@ static struct notifier_block wdt_notifier = { };/** -* cleanup_module: +* wdt_exit: * * Unload the watchdog. You cannot do this with any file handles open. * If your watchdog is set to continue ticking on close and you unload
drivers/watchdog/wdt_pci.c +1 -1
@@ -537,7 +537,7 @@ static int wdtpci_temp_release(struct inode *inode, struct file *file) }/** -* notify_sys: +* wdtpci_notify_sys: * @this: our notifier block * @code: the event being reported * @unused: unused
Signature · 1 line
2.17.1
Quoted 6 lines · Lukas Bulwahn
The command 'find
drivers/watchdog| xargs./scripts/kernel-doc-none' reports a number of kernel-doc warnings in the watchdog subsystem.Address the kernel-doc warnings that were purely syntactic issues with kernel-doc comments.
Quoted 6 lines
The remaining kernel-doc warnings are of type "Excess function parameter" and "Function parameter or member not described". These warnings would need to be addressed in a second pass with a bit more insight into the APIs and purpose of the functions in the watchdog subsystem.
Signed-off-by Lukas Bulwahn <[email protected]>
Quoted 185 lines
---
Guenter, Wim, please pick this minor clean-up patch.drivers/watchdog/booke_wdt.c | 2 +- drivers/watchdog/eurotechwdt.c | 2 +- drivers/watchdog/mei_wdt.c | 8 ++++---- drivers/watchdog/octeon-wdt-main.c | 12 +++++++----- drivers/watchdog/pc87413_wdt.c | 2 +- drivers/watchdog/wdt.c | 4 ++-- drivers/watchdog/wdt_pci.c | 2 +- 7 files changed, 17 insertions(+), 15 deletions(-)drivers/watchdog/booke_wdt.c +1
-1@@ -148,7 +148,7 @@ static void __booke_wdt_enable(void *data) }/** -* booke_wdt_disable - disable the watchdog on the given CPU +* __booke_wdt_disable - disable the watchdog on the given CPU * * This function is called on each CPU. It disables the watchdog on that CPU. * drivers/watchdog/eurotechwdt.c +1
-1@@ -392,7 +392,7 @@ static struct notifier_block eurwdt_notifier = { };/** -* cleanup_module: +* eurwdt_exit: * * Unload the watchdog. You cannot do this with any file handles open. * If your watchdog is set to continue ticking on close and you unload drivers/watchdog/mei_wdt.c +4
-4@@ -105,7 +105,7 @@ struct mei_wdt {#endif /* CONFIG_DEBUG_FS */ }; -/* +/** * struct mei_mc_hdr - Management Control Command Header * * @command: Management Control (0x2) @@ -121,7 +121,7 @@ struct mei_mc_hdr { };/** -* struct mei_wdt_start_request watchdog start/ping +* struct mei_wdt_start_request - watchdog start/ping * * @hdr: Management Control Command Header * @timeout: timeout value @@ -134,7 +134,7 @@ struct mei_wdt_start_request { } __packed;/** -* struct mei_wdt_start_response watchdog start/ping response +* struct mei_wdt_start_response - watchdog start/ping response * * @hdr: Management Control Command Header * @status: operation status @@ -474,7 +474,7 @@ static void mei_wdt_rx(struct mei_cl_device *cldev)complete (&wdt->response); } -/* +/** * mei_wdt_notif - callback for event notification * * @cldev: bus device drivers/watchdog/octeon-wdt-main.c +7
-5@@ -119,7 +119,7 @@ static int cpu2core(int cpu) }/** -* Poke the watchdog when an interrupt is received +* octeon_wdt_poke_irq - Poke the watchdog when an interrupt is received * * @cpl: * @dev_id: @@ -153,7 +153,7 @@ static irqreturn_t octeon_wdt_poke_irq(int cpl, void *dev_id)extern int prom_putchar (char c);/** -* Write a string to the uart +* octeon_wdt_write_string - Write a string to the uart * * @str: String to write */ @@ -165,7 +165,7 @@ static void octeon_wdt_write_string(const char *str) }/** -* Write a hex number out of the uart +* octeon_wdt_write_hex() - Write a hex number out of the uart * * @value: Number to display * @digits: Number of digits to print (1 to 16) @@ -192,6 +192,8 @@ static const char reg_name[][3] = { };/** +* octeon_wdt_nmi_stage3: +* * NMI stage 3 handler. NMIs are handled in the following manner: * 1) The first NMI handler enables CVMSEG and transfers from * the bootbus region into normal memory. It is careful to not @@ -513,7 +515,7 @@ static struct watchdog_device octeon_wdt = {static enum cpuhp_state octeon_wdt_online;/** -* Module/ driver initialization. +* octeon_wdt_init - Module/ driver initialization. * * Returns Zero on success */ @@ -585,7 +587,7 @@ static int __init octeon_wdt_init(void) }/** -* Module / driver shutdown +* octeon_wdt_cleanup - Module / driver shutdown */ static void __exit octeon_wdt_cleanup(void) {drivers/watchdog/pc87413_wdt.c +1
-1@@ -445,7 +445,7 @@ static long pc87413_ioctl(struct file *file, unsigned int cmd,/* -- Notifier funtions -----------------------------------------*/ /** -* notify_sys: +* pc87413_notify_sys: * @this: our notifier block * @code: the event being reported * @unused: unused drivers/watchdog/wdt.c +2
-2@@ -494,7 +494,7 @@ static int wdt_temp_release(struct inode *inode, struct file *file) }/** -* notify_sys: +* wdt_notify_sys: * @this: our notifier block * @code: the event being reported * @unused: unused @@ -558,7 +558,7 @@ static struct notifier_block wdt_notifier = { };/** -* cleanup_module: +* wdt_exit: * * Unload the watchdog. You cannot do this with any file handles open. * If your watchdog is set to continue ticking on close and you unload drivers/watchdog/wdt_pci.c +1
-1@@ -537,7 +537,7 @@ static int wdtpci_temp_release(struct inode *inode, struct file *file) }/** -* notify_sys: +* wdtpci_notify_sys: * @this: our notifier block * @code: the event being reported * @unused: unused
Quoted 9 lines · Lukas Bulwahn
Quoted 7 lines
The command 'find
drivers/watchdog| xargs./scripts/kernel-doc-none' reports a number of kernel-doc warnings in the watchdog subsystem.Address the kernel-doc warnings that were purely syntactic issues with kernel-doc comments.
The remaining kernel-doc warnings are of type "Excess function
parameter"
Quoted 8 lines
Quoted 1 line
and "Function parameter or member not described". These warnings
would
Quoted 4 lines
need to be addressed in a second pass with a bit more insight into the APIs and purpose of the functions in the watchdog subsystem.
Signed-off-by Lukas Bulwahn <[email protected]>Reviewed-by Guenter Roeck <[email protected]>
Ack for mei_wdt
Tomas
Quoted 184 lines
Quoted 13 lines
---
Guenter, Wim, please pick this minor clean-up patch.drivers/watchdog/booke_wdt.c | 2 +- drivers/watchdog/eurotechwdt.c | 2 +- drivers/watchdog/mei_wdt.c | 8 ++++---- drivers/watchdog/octeon-wdt-main.c | 12 +++++++----- drivers/watchdog/pc87413_wdt.c | 2 +- drivers/watchdog/wdt.c | 4 ++-- drivers/watchdog/wdt_pci.c | 2 +- 7 files changed, 17 insertions(+), 15 deletions(-)Quoted 2 lines
(quoted diff) +0
-0
b/drivers/watchdog/booke_wdt.cindex7817fb976f9c..5e4dc1a0f2c6100644
drivers/watchdog/booke_wdt.c static void __booke_wdt_enable(void *data) } · line 152
Quoted 9 lines
drivers/watchdog/booke_wdt.c +1
-1@@ -148,7 +148,7 @@ static void __booke_wdt_enable(void *data) }/** -* booke_wdt_disable - disable the watchdog on the given CPU +* __booke_wdt_disable - disable the watchdog on the given CPU * * This function is called on each CPU. It disables the watchdog on that CPU.
Quoted 158 lines
drivers/watchdog/booke_wdt.c +0
-0* (quoted diff) +0
-0
b/drivers/watchdog/eurotechwdt.cindex2418ebb707bd..ce682942662c100644drivers/watchdog/eurotechwdt.c +1
-1@@ -392,7 +392,7 @@ static struct notifier_block eurwdt_notifier = { };/** -* cleanup_module: +* eurwdt_exit: * * Unload the watchdog. You cannot do this with any file handles open. * If your watchdog is set to continue ticking on close and you unload diff --git
a/drivers/watchdog/mei_wdt.cb/drivers/watchdog/mei_wdt.cindexe023d7d90d66..c7a7235e6224100644drivers/watchdog/mei_wdt.c +1
-1@@ -105,7 +105,7 @@ struct mei_wdt {#endif /* CONFIG_DEBUG_FS */ }; -/* +/** * struct mei_mc_hdr - Management Control Command Header * * @command: Management Control (0x2) @@ -121,7 +121,7 @@ struct
mei_mc_hdr{ };/**
- * structmei_wdt_start_requestwatchdog start/ping
+ * structmei_wdt_start_request- watchdog start/ping *
* @hdr: Management Control Command Header
* @timeout: timeout valuedrivers/watchdog/mei_wdt.c +2
-2@@ -134,7 +134,7 @@ struct mei_wdt_start_request { } __packed;/** -* struct mei_wdt_start_response watchdog start/ping response +* struct mei_wdt_start_response - watchdog start/ping response * * @hdr: Management Control Command Header * @status: operation status @@ -474,7 +474,7 @@ static void mei_wdt_rx(struct mei_cl_device *cldev)complete (&wdt->response); } -/* +/** * mei_wdt_notif - callback for event notification * * @cldev: bus device drivers/watchdog/octeon-wdt-main.c +8
-6@@ -119,7 +119,7 @@ static int cpu2core(int cpu) }/** -* Poke the watchdog when an interrupt is received +* octeon_wdt_poke_irq - Poke the watchdog when an interrupt is +received * * @cpl: * @dev_id: @@ -153,7 +153,7 @@ static irqreturn_t octeon_wdt_poke_irq(int cpl, void *dev_id) extern int prom_putchar(char c);/** -* Write a string to the uart +* octeon_wdt_write_string - Write a string to the uart * * @str: String to write */ @@ -165,7 +165,7 @@ static void octeon_wdt_write_string(const char *str) }/** -* Write a hex number out of the uart +* octeon_wdt_write_hex() - Write a hex number out of the uart * * @value: Number to display * @digits: Number of digits to print (1 to 16) @@ -192,6 +192,8 @@ static const char reg_name[][3] = { };/** +* octeon_wdt_nmi_stage3: +* * NMI stage 3 handler. NMIs are handled in the following manner: * 1) The first NMI handler enables CVMSEG and transfers from * the bootbus region into normal memory. It is careful to not @@ -513,7 +515,7 @@ static struct watchdog_device octeon_wdt = { static enum cpuhp_state octeon_wdt_online; /** -* Module/ driver initialization. +* octeon_wdt_init - Module/ driver initialization. * * Returns Zero on success */ @@ -585,7 +587,7 @@ static int __init octeon_wdt_init(void) }/** -* Module / driver shutdown +* octeon_wdt_cleanup - Module / driver shutdown */ static void __exit octeon_wdt_cleanup(void) { diff --git
a/drivers/watchdog/pc87413_wdt.cb/drivers/watchdog/pc87413_wdt.cindex2d4504302c9e..9f9a340427fc100644drivers/watchdog/pc87413_wdt.c +1
-1@@ -445,7 +445,7 @@ static long pc87413_ioctl(struct file *file, unsigned int cmd,/* -- Notifier funtions -----------------------------------------*/ /** -* notify_sys: +* pc87413_notify_sys: * @this: our notifier block * @code: the event being reported * @unused: unused
drivers/watchdog/wdt.c index renamed from drivers/watchdog/wdt.c +0
-0a9e40b5c633e..183876156243 100644
drivers/watchdog/wdt.c +2
-2@@ -494,7 +494,7 @@ static int wdt_temp_release(struct inode *inode, struct file *file) }/** -* notify_sys: +* wdt_notify_sys: * @this: our notifier block * @code: the event being reported * @unused: unused @@ -558,7 +558,7 @@ static struct notifier_block wdt_notifier = { };/** -* cleanup_module: +* wdt_exit: * * Unload the watchdog. You cannot do this with any file handles open. * If your watchdog is set to continue ticking on close and you unload drivers/watchdog/wdt_pci.c +1
-1@@ -537,7 +537,7 @@ static int wdtpci_temp_release(struct inode *inode, struct file *file) }/** -* notify_sys: +* wdtpci_notify_sys: * @this: our notifier block * @code: the event being reported * @unused: unused