drivers/reset/core.c:64: warning: Excess struct member 'rstc' description in 'reset_control_array'
From: kernel test robot
Date: Thu Dec 14 2023 - 17:20:38 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c7402612e2e61b76177f22e6e7f705adcbecc6fe
commit: fed2ef7abaebe5e0207cd52ae52721ea3da3b5ba reset: Annotate struct reset_control_array with __counted_by
date: 7 weeks ago
config: arm-randconfig-r081-20231214 (https://download.01.org/0day-ci/archive/20231215/202312150614.kOx8xUkr-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231215/202312150614.kOx8xUkr-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/202312150614.kOx8xUkr-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> drivers/reset/core.c:64: warning: Excess struct member 'rstc' description in 'reset_control_array'
vim +64 drivers/reset/core.c
61fc41317666be Philipp Zabel 2012-11-19 53
17c82e206d2a3c Vivek Gautam 2017-05-22 54 /**
17c82e206d2a3c Vivek Gautam 2017-05-22 55 * struct reset_control_array - an array of reset controls
17c82e206d2a3c Vivek Gautam 2017-05-22 56 * @base: reset control for compatibility with reset control API functions
17c82e206d2a3c Vivek Gautam 2017-05-22 57 * @num_rstcs: number of reset controls
17c82e206d2a3c Vivek Gautam 2017-05-22 58 * @rstc: array of reset controls
17c82e206d2a3c Vivek Gautam 2017-05-22 59 */
17c82e206d2a3c Vivek Gautam 2017-05-22 60 struct reset_control_array {
17c82e206d2a3c Vivek Gautam 2017-05-22 61 struct reset_control base;
17c82e206d2a3c Vivek Gautam 2017-05-22 62 unsigned int num_rstcs;
fed2ef7abaebe5 Kees Cook 2023-09-22 63 struct reset_control *rstc[] __counted_by(num_rstcs);
17c82e206d2a3c Vivek Gautam 2017-05-22 @64 };
17c82e206d2a3c Vivek Gautam 2017-05-22 65
:::::: The code at line 64 was first introduced by commit
:::::: 17c82e206d2a3cd876b64921c59116f1ecdce6ad reset: Add APIs to manage array of resets
:::::: TO: Vivek Gautam <vivek.gautam@xxxxxxxxxxxxxx>
:::::: CC: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki