Skip to contentSkip to conversation

mailbox: zynqmp-ipi: fix an Excess struct member kernel-doc warning

PATCH In review Randy Dunlap 2 participants 2 messages Dec 16, 2023 – Dec 18, 2023

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

PATCH 1/1 mailbox: zynqmp-ipi: fix an Excess struct member kernel-doc warning

kernel test robot reports 2 Excess struct member warnings:

zynqmp-ipi-mailbox.c:92: warning: Excess struct member 'irq' description in 'zynqmp_ipi_mbox' zynqmp-ipi-mailbox.c:112: warning: Excess struct member 'ipi_mboxes' description in 'zynqmp_ipi_pdata'

The second one is a false positive that is caused by the __counted_by() attribute. Kees has posted a patch for that, so just fix the first one.

---
 drivers/mailbox/zynqmp-ipi-mailbox.c |    1 -
 1 file changed, 1 deletion(-)
drivers/mailbox/zynqmp-ipi-mailbox.c +0 -1
diff -- a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c
@@ -81,7 +81,6 @@ struct zynqmp_ipi_mchan {
  * @remote_id:            remote IPI agent ID
  * @mbox:                 mailbox Controller
  * @mchans:               array for channels, tx channel and rx channel.
- * @irq:                  IPI agent interrupt ID
  */
 struct zynqmp_ipi_mbox {
 	struct zynqmp_ipi_pdata *pdata;
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Randy Dunlap

kernel test robot reports 2 Excess struct member warnings:

zynqmp-ipi-mailbox.c:92: warning: Excess struct member 'irq' description in 'zynqmp_ipi_mbox' zynqmp-ipi-mailbox.c:112: warning: Excess struct member 'ipi_mboxes' description in 'zynqmp_ipi_pdata'

The second one is a false positive that is caused by the __counted_by() attribute. Kees has posted a patch for that, so just fix the first one.

---
  drivers/mailbox/zynqmp-ipi-mailbox.c |    1 -
  1 file changed, 1 deletion(-)

diff -- a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c

drivers/mailbox/zynqmp-ipi-mailbox.c struct zynqmp_ipi_mchan { · line 86

Quoted 7 lines
drivers/mailbox/zynqmp-ipi-mailbox.c +0 -1
@@ -81,7 +81,6 @@ struct zynqmp_ipi_mchan {
   * @remote_id:            remote IPI agent ID
   * @mbox:                 mailbox Controller
   * @mchans:               array for channels, tx channel and rx channel.
- * @irq:                  IPI agent interrupt ID
   */
  struct zynqmp_ipi_mbox {
  	struct zynqmp_ipi_pdata *pdata;

Thanks,
Michal