drivers/mailbox/zynqmp-ipi-mailbox.c:112: warning: Excess struct member 'ipi_mboxes' description in 'zynqmp_ipi_pdata'

From: kernel test robot
Date: Thu Dec 14 2023 - 18:26:50 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c7402612e2e61b76177f22e6e7f705adcbecc6fe
commit: c5225cd073c65a6d7e8e311ec0114792a671982a mailbox: zynqmp: Annotate struct zynqmp_ipi_pdata with __counted_by
date: 10 weeks ago
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20231215/202312150705.glrQ4ypv-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231215/202312150705.glrQ4ypv-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312150705.glrQ4ypv-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

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


vim +112 drivers/mailbox/zynqmp-ipi-mailbox.c

4981b82ba2ff87 Wendy Liang 2019-02-21 93
4981b82ba2ff87 Wendy Liang 2019-02-21 94 /**
4981b82ba2ff87 Wendy Liang 2019-02-21 95 * struct zynqmp_ipi_pdata - Description of z ZynqMP IPI agent platform data.
4981b82ba2ff87 Wendy Liang 2019-02-21 96 *
4981b82ba2ff87 Wendy Liang 2019-02-21 97 * @dev: device pointer corresponding to the Xilinx ZynqMP
4981b82ba2ff87 Wendy Liang 2019-02-21 98 * IPI agent
4981b82ba2ff87 Wendy Liang 2019-02-21 99 * @irq: IPI agent interrupt ID
4981b82ba2ff87 Wendy Liang 2019-02-21 100 * @method: IPI SMC or HVC is going to be used
4981b82ba2ff87 Wendy Liang 2019-02-21 101 * @local_id: local IPI agent ID
4981b82ba2ff87 Wendy Liang 2019-02-21 102 * @num_mboxes: number of mailboxes of this IPI agent
4981b82ba2ff87 Wendy Liang 2019-02-21 103 * @ipi_mboxes: IPI mailboxes of this IPI agent
4981b82ba2ff87 Wendy Liang 2019-02-21 104 */
4981b82ba2ff87 Wendy Liang 2019-02-21 105 struct zynqmp_ipi_pdata {
4981b82ba2ff87 Wendy Liang 2019-02-21 106 struct device *dev;
4981b82ba2ff87 Wendy Liang 2019-02-21 107 int irq;
4981b82ba2ff87 Wendy Liang 2019-02-21 108 unsigned int method;
4981b82ba2ff87 Wendy Liang 2019-02-21 109 u32 local_id;
4981b82ba2ff87 Wendy Liang 2019-02-21 110 int num_mboxes;
c5225cd073c65a Kees Cook 2023-09-22 111 struct zynqmp_ipi_mbox ipi_mboxes[] __counted_by(num_mboxes);
4981b82ba2ff87 Wendy Liang 2019-02-21 @112 };
4981b82ba2ff87 Wendy Liang 2019-02-21 113

:::::: The code at line 112 was first introduced by commit
:::::: 4981b82ba2ff87df6a711fcd7a233c615df5fc79 mailbox: ZynqMP IPI mailbox controller

:::::: TO: Wendy Liang <wendy.liang@xxxxxxxxxx>
:::::: CC: Jassi Brar <jaswinder.singh@xxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki