Skip to contentSkip to conversation

misc: mei: fix all kernel-doc warnings

PATCH New Randy Dunlap 1 participant 8 messages Oct 12, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover misc: mei: fix all kernel-doc warnings

Fix all remaining kernel-doc warnings in drivers/misc/mei/.

This series should be applied after Tomas's 3-patch series for char-misc-mei docs fixes.

[PATCH 1/7] misc: mei: hw.h: fix kernel-doc warnings [PATCH 2/7] misc: mei: client.c: fix kernel-doc warnings [PATCH 3/7] misc: mei: dma-ring.c: fix kernel-doc warnings [PATCH 4/7] misc: mei: hbm.c: fix kernel-doc warnings [PATCH 5/7] misc: mei: hw-me.c: fix kernel-doc warnings [PATCH 6/7] misc: mei: interrupt.c: fix kernel-doc warnings [PATCH 7/7] misc: mei: main.c: fix kernel-doc warnings

 drivers/misc/mei/client.c    |   20 ++++++++++----------
 drivers/misc/mei/dma-ring.c  |    4 ++++
 drivers/misc/mei/hbm.c       |    2 ++
 drivers/misc/mei/hw-me.c     |   16 ++++++++--------
 drivers/misc/mei/hw.h        |    8 ++++----
 drivers/misc/mei/interrupt.c |    4 ++--
 drivers/misc/mei/main.c      |    8 ++++----
 7 files changed, 34 insertions(+), 28 deletions(-)
Cc Tomas Winkler <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
#1 lore raw

PATCH 1/7 misc: mei: hw.h: fix kernel-doc warnings

Fix kernel-doc warnings in hw.h:

hw.h:809: warning: missing initial short description on line:
* struct hbm_client_dma_unmap_request
hw.h:812: warning: contents before sections hw.h:825: warning: missing initial short description on line:
* struct hbm_client_dma_response
hw.h:828: warning: contents before sections

Cc Tomas Winkler <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/mei/hw.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/misc/mei/hw.h +4 -4
diff -- a/drivers/misc/mei/hw.h b/drivers/misc/mei/hw.h
@@ -806,8 +806,8 @@ struct hbm_client_dma_map_request {
 } __packed;
 
 /**
- * struct hbm_client_dma_unmap_request
- *    client dma unmap request from the host to the firmware
+ * struct hbm_client_dma_unmap_request - client dma unmap request
+ *        from the host to the firmware
  *
  * @hbm_cmd: bus message command header
  * @status: unmap status
@@ -822,8 +822,8 @@ struct hbm_client_dma_unmap_request {
 } __packed;
 
 /**
- * struct hbm_client_dma_response
- *   client dma unmap response from the firmware to the host
+ * struct hbm_client_dma_response - client dma unmap response
+ *        from the firmware to the host
  *
  * @hbm_cmd: bus message command header
  * @status: command status
#2 lore raw

PATCH 2/7 misc: mei: client.c: fix kernel-doc warnings

In reply to Randy Dunlap

Fix kernel-doc warnings in client.c:

client.c:53: warning: contents before sections client.c:68: warning: contents before sections client.c:334: warning: contents before sections client.c:349: warning: contents before sections client.c:364: warning: contents before sections

Cc Tomas Winkler <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/mei/client.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/misc/mei/client.c +10 -10
diff -- a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c
@@ -48,9 +48,9 @@ struct mei_me_client *mei_me_cl_get(stru
 /**
  * mei_me_cl_release - free me client
  *
- * Locking: called under "dev->device_lock" lock
- *
  * @ref: me_client refcount
+ *
+ * Locking: called under "dev->device_lock" lock
  */
 static void mei_me_cl_release(struct kref *ref)
 {
@@ -63,9 +63,9 @@ static void mei_me_cl_release(struct kre
 /**
  * mei_me_cl_put - decrease me client refcount and free client if necessary
  *
- * Locking: called under "dev->device_lock" lock
- *
  * @me_cl: me client
+ *
+ * Locking: called under "dev->device_lock" lock
  */
 void mei_me_cl_put(struct mei_me_client *me_cl)
 {
@@ -329,10 +329,10 @@ void mei_io_cb_free(struct mei_cl_cb *cb
 /**
  * mei_tx_cb_enqueue - queue tx callback
  *
- * Locking: called under "dev->device_lock" lock
- *
  * @cb: mei callback struct
  * @head: an instance of list to queue on
+ *
+ * Locking: called under "dev->device_lock" lock
  */
 static inline void mei_tx_cb_enqueue(struct mei_cl_cb *cb,
 				     struct list_head *head)
@@ -344,9 +344,9 @@ static inline void mei_tx_cb_enqueue(str
 /**
  * mei_tx_cb_dequeue - dequeue tx callback
  *
- * Locking: called under "dev->device_lock" lock
- *
  * @cb: mei callback struct to dequeue and free
+ *
+ * Locking: called under "dev->device_lock" lock
  */
 static inline void mei_tx_cb_dequeue(struct mei_cl_cb *cb)
 {
@@ -359,10 +359,10 @@ static inline void mei_tx_cb_dequeue(str
 /**
  * mei_cl_set_read_by_fp - set pending_read flag to vtag struct for given fp
  *
- * Locking: called under "dev->device_lock" lock
- *
  * @cl: mei client
  * @fp: pointer to file structure
+ *
+ * Locking: called under "dev->device_lock" lock
  */
 static void mei_cl_set_read_by_fp(const struct mei_cl *cl,
 				  const struct file *fp)
#3 lore raw

PATCH 3/7 misc: mei: dma-ring.c: fix kernel-doc warnings

In reply to Randy Dunlap

Fix kernel-doc warnings in dma-ring.c:

dma-ring.c:130: warning: No description found for return value of 'mei_dma_copy_from' dma-ring.c:150: warning: No description found for return value of 'mei_dma_copy_to'

Cc Tomas Winkler <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/mei/dma-ring.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/misc/mei/dma-ring.c +4 -0
diff -- a/drivers/misc/mei/dma-ring.c b/drivers/misc/mei/dma-ring.c
@@ -124,6 +124,8 @@ void mei_dma_ring_reset(struct mei_devic
  * @buf: data buffer
  * @offset: offset in slots.
  * @n: number of slots to copy.
+ *
+ * Return: number of bytes copied
  */
 static size_t mei_dma_copy_from(struct mei_device *dev, unsigned char *buf,
 				u32 offset, u32 n)
@@ -144,6 +146,8 @@ static size_t mei_dma_copy_from(struct m
  * @buf: data buffer
  * @offset: offset in slots.
  * @n: number of slots to copy.
+ *
+ * Return: number of bytes copied
  */
 static size_t mei_dma_copy_to(struct mei_device *dev, unsigned char *buf,
 			      u32 offset, u32 n)
#4 lore raw

PATCH 4/7 misc: mei: hbm.c: fix kernel-doc warnings

In reply to Randy Dunlap

Fix kernel-doc warnings in hbm.c:

hbm.c:98: warning: No description found for return value of 'mei_hbm_write_message'

Cc Tomas Winkler <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/mei/hbm.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/misc/mei/hbm.c +2 -0
diff -- a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
@@ -91,6 +91,8 @@ static int mei_cl_conn_status_to_errno(e
  * @dev: mei device
  * @hdr: mei header
  * @data: payload
+ *
+ * Return: >=0 on success, <0 on error
  */
 static inline int mei_hbm_write_message(struct mei_device *dev,
 					struct mei_msg_hdr *hdr,
#5 lore raw

PATCH 5/7 misc: mei: hw-me.c: fix kernel-doc warnings

In reply to Randy Dunlap

Fix kernel-doc warnings in hw-me.c:

hw-me.c:1391: warning: contents before sections hw-me.c:1475: warning: contents before sections hw-me.c:1501: warning: contents before sections hw-me.c:1525: warning: contents before sections

Cc Tomas Winkler <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/mei/hw-me.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/misc/mei/hw-me.c +8 -8
diff -- a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c
@@ -1379,6 +1379,8 @@ EXPORT_SYMBOL_GPL(mei_me_irq_thread_hand
 /**
  * mei_me_polling_thread - interrupt register polling thread
  *
+ * @_dev: mei device
+ *
  * The thread monitors the interrupt source register and calls
  * mei_me_irq_thread_handler() to handle the firmware
  * input.
@@ -1388,8 +1390,6 @@ EXPORT_SYMBOL_GPL(mei_me_irq_thread_hand
  * time increases yet again by MEI_POLLING_TIMEOUT_ACTIVE
  * up to MEI_POLLING_TIMEOUT_IDLE.
  *
- * @_dev: mei device
- *
  * Return: always 0
  */
 int mei_me_polling_thread(void *_dev)
@@ -1468,12 +1468,12 @@ static const struct mei_hw_ops mei_me_hw
 /**
  * mei_me_fw_type_nm() - check for nm sku
  *
+ * @pdev: pci device
+ *
  * Read ME FW Status register to check for the Node Manager (NM) Firmware.
  * The NM FW is only signaled in PCI function 0.
  * __Note__: Deprecated by PCH8 and newer.
  *
- * @pdev: pci device
- *
  * Return: true in case of NM firmware
  */
 static bool mei_me_fw_type_nm(const struct pci_dev *pdev)
@@ -1494,12 +1494,12 @@ static bool mei_me_fw_type_nm(const stru
 /**
  * mei_me_fw_type_sps_4() - check for sps 4.0 sku
  *
+ * @pdev: pci device
+ *
  * Read ME FW Status register to check for SPS Firmware.
  * The SPS FW is only signaled in the PCI function 0.
  * __Note__: Deprecated by SPS 5.0 and newer.
  *
- * @pdev: pci device
- *
  * Return: true in case of SPS firmware
  */
 static bool mei_me_fw_type_sps_4(const struct pci_dev *pdev)
@@ -1519,11 +1519,11 @@ static bool mei_me_fw_type_sps_4(const s
 /**
  * mei_me_fw_type_sps_ign() - check for sps or ign sku
  *
+ * @pdev: pci device
+ *
  * Read ME FW Status register to check for SPS or IGN Firmware.
  * The SPS/IGN FW is only signaled in pci function 0
  *
- * @pdev: pci device
- *
  * Return: true in case of SPS/IGN firmware
  */
 static bool mei_me_fw_type_sps_ign(const struct pci_dev *pdev)
#6 lore raw

PATCH 6/7 misc: mei: interrupt.c: fix kernel-doc warnings

In reply to Randy Dunlap

Fix kernel-doc warnings in interrupt.c:

interrupt.c:631: warning: contents before sections

Cc Tomas Winkler <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/mei/interrupt.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/mei/interrupt.c +2 -2
diff -- a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
@@ -626,9 +626,9 @@ static void mei_connect_timeout(struct m
 /**
  * mei_schedule_stall_timer - re-arm stall_timer work
  *
- * Schedule stall timer
- *
  * @dev: the device structure
+ *
+ * Schedule stall timer
  */
 void mei_schedule_stall_timer(struct mei_device *dev)
 {
#7 lore raw

PATCH 7/7 misc: mei: main.c: fix kernel-doc warnings

In reply to Randy Dunlap

Fix kernel-doc warnings in main.c:

main.c:465: warning: contents before sections main.c:590: warning: missing initial short description on line:
* mei_ioctl_client_notify_request -

Cc Tomas Winkler <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/misc/mei/main.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/misc/mei/main.c +4 -4
diff -- a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
@@ -460,11 +460,11 @@ end:
 /**
  * mei_vt_support_check - check if client support vtags
  *
- * Locking: called under "dev->device_lock" lock
- *
  * @dev: mei_device
  * @uuid: client UUID
  *
+ * Locking: called under "dev->device_lock" lock
+ *
  * Return:
  *	0 - supported
  *	-ENOTTY - no such client
@@ -587,8 +587,8 @@ static int mei_ioctl_connect_vtag(struct
 }
 
 /**
- * mei_ioctl_client_notify_request -
- *     propagate event notification request to client
+ * mei_ioctl_client_notify_request - propagate event notification
+ *                                   request to client
  *
  * @file: pointer to file structure
  * @request: 0 - disable, 1 - enable