public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] mailbox: bcm-pdc: Fix some kernel-doc comments
@ 2023-08-11  1:34 Yang Li
  2023-08-11 17:17 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2023-08-11  1:34 UTC (permalink / raw)
  To: jassisinghbrar; +Cc: linux-kernel, Yang Li

Fix some kernel-doc comments to silence the warnings:

drivers/mailbox/bcm-pdc-mailbox.c:707: warning: Function parameter or member 'pdcs' not described in 'pdc_tx_list_sg_add'
drivers/mailbox/bcm-pdc-mailbox.c:707: warning: Excess function parameter 'spu_idx' description in 'pdc_tx_list_sg_add'
drivers/mailbox/bcm-pdc-mailbox.c:875: warning: Function parameter or member 'pdcs' not described in 'pdc_rx_list_sg_add'
drivers/mailbox/bcm-pdc-mailbox.c:875: warning: Excess function parameter 'spu_idx' description in 'pdc_rx_list_sg_add'
drivers/mailbox/bcm-pdc-mailbox.c:966: warning: Function parameter or member 't' not described in 'pdc_tasklet_cb'
drivers/mailbox/bcm-pdc-mailbox.c:966: warning: Excess function parameter 'data' description in 'pdc_tasklet_cb'

Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/mailbox/bcm-pdc-mailbox.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mailbox/bcm-pdc-mailbox.c b/drivers/mailbox/bcm-pdc-mailbox.c
index 8c95e3ce295f..5401b9e3f5e8 100644
--- a/drivers/mailbox/bcm-pdc-mailbox.c
+++ b/drivers/mailbox/bcm-pdc-mailbox.c
@@ -694,7 +694,7 @@ pdc_receive(struct pdc_state *pdcs)
  * pdc_tx_list_sg_add() - Add the buffers in a scatterlist to the transmit
  * descriptors for a given SPU. The scatterlist buffers contain the data for a
  * SPU request message.
- * @spu_idx:   The index of the SPU to submit the request to, [0, max_spu)
+ * @pdcs:      PDC state for the SPU that will process this request
  * @sg:        Scatterlist whose buffers contain part of the SPU request
  *
  * If a scatterlist buffer is larger than PDC_DMA_BUF_MAX, multiple descriptors
@@ -861,7 +861,7 @@ static int pdc_rx_list_init(struct pdc_state *pdcs, struct scatterlist *dst_sg,
  * pdc_rx_list_sg_add() - Add the buffers in a scatterlist to the receive
  * descriptors for a given SPU. The caller must have already DMA mapped the
  * scatterlist.
- * @spu_idx:    Indicates which SPU the buffers are for
+ * @pdcs:       PDC state for the SPU that will process this request
  * @sg:         Scatterlist whose buffers are added to the receive ring
  *
  * If a receive buffer in the scatterlist is larger than PDC_DMA_BUF_MAX,
@@ -960,7 +960,7 @@ static irqreturn_t pdc_irq_handler(int irq, void *data)
 /**
  * pdc_tasklet_cb() - Tasklet callback that runs the deferred processing after
  * a DMA receive interrupt. Reenables the receive interrupt.
- * @data: PDC state structure
+ * @t: Pointer to the Altera sSGDMA channel structure
  */
 static void pdc_tasklet_cb(struct tasklet_struct *t)
 {
-- 
2.20.1.7.g153144c


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] mailbox: bcm-pdc: Fix some kernel-doc comments
  2023-08-11  1:34 [PATCH -next] mailbox: bcm-pdc: Fix some kernel-doc comments Yang Li
@ 2023-08-11 17:17 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2023-08-11 17:17 UTC (permalink / raw)
  To: Yang Li, jassisinghbrar; +Cc: linux-kernel



On 8/10/23 18:34, Yang Li wrote:
> Fix some kernel-doc comments to silence the warnings:
> 
> drivers/mailbox/bcm-pdc-mailbox.c:707: warning: Function parameter or member 'pdcs' not described in 'pdc_tx_list_sg_add'
> drivers/mailbox/bcm-pdc-mailbox.c:707: warning: Excess function parameter 'spu_idx' description in 'pdc_tx_list_sg_add'
> drivers/mailbox/bcm-pdc-mailbox.c:875: warning: Function parameter or member 'pdcs' not described in 'pdc_rx_list_sg_add'
> drivers/mailbox/bcm-pdc-mailbox.c:875: warning: Excess function parameter 'spu_idx' description in 'pdc_rx_list_sg_add'
> drivers/mailbox/bcm-pdc-mailbox.c:966: warning: Function parameter or member 't' not described in 'pdc_tasklet_cb'
> drivers/mailbox/bcm-pdc-mailbox.c:966: warning: Excess function parameter 'data' description in 'pdc_tasklet_cb'
> 
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>

Thanks.

> ---
>  drivers/mailbox/bcm-pdc-mailbox.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/mailbox/bcm-pdc-mailbox.c b/drivers/mailbox/bcm-pdc-mailbox.c
> index 8c95e3ce295f..5401b9e3f5e8 100644
> --- a/drivers/mailbox/bcm-pdc-mailbox.c
> +++ b/drivers/mailbox/bcm-pdc-mailbox.c
> @@ -694,7 +694,7 @@ pdc_receive(struct pdc_state *pdcs)
>   * pdc_tx_list_sg_add() - Add the buffers in a scatterlist to the transmit
>   * descriptors for a given SPU. The scatterlist buffers contain the data for a
>   * SPU request message.
> - * @spu_idx:   The index of the SPU to submit the request to, [0, max_spu)
> + * @pdcs:      PDC state for the SPU that will process this request
>   * @sg:        Scatterlist whose buffers contain part of the SPU request
>   *
>   * If a scatterlist buffer is larger than PDC_DMA_BUF_MAX, multiple descriptors
> @@ -861,7 +861,7 @@ static int pdc_rx_list_init(struct pdc_state *pdcs, struct scatterlist *dst_sg,
>   * pdc_rx_list_sg_add() - Add the buffers in a scatterlist to the receive
>   * descriptors for a given SPU. The caller must have already DMA mapped the
>   * scatterlist.
> - * @spu_idx:    Indicates which SPU the buffers are for
> + * @pdcs:       PDC state for the SPU that will process this request
>   * @sg:         Scatterlist whose buffers are added to the receive ring
>   *
>   * If a receive buffer in the scatterlist is larger than PDC_DMA_BUF_MAX,
> @@ -960,7 +960,7 @@ static irqreturn_t pdc_irq_handler(int irq, void *data)
>  /**
>   * pdc_tasklet_cb() - Tasklet callback that runs the deferred processing after
>   * a DMA receive interrupt. Reenables the receive interrupt.
> - * @data: PDC state structure
> + * @t: Pointer to the Altera sSGDMA channel structure
>   */
>  static void pdc_tasklet_cb(struct tasklet_struct *t)
>  {

-- 
~Randy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-11 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-11  1:34 [PATCH -next] mailbox: bcm-pdc: Fix some kernel-doc comments Yang Li
2023-08-11 17:17 ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox