[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202312150614.kOx8xUkr-lkp@intel.com>
Date: Fri, 15 Dec 2023 06:19:56 +0800
From: kernel test robot <lkp@...el.com>
To: Kees Cook <keescook@...omium.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
"Gustavo A. R. Silva" <gustavoars@...nel.org>
Subject: drivers/reset/core.c:64: warning: Excess struct member 'rstc'
description in 'reset_control_array'
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@intel.com/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@intel.com/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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312150614.kOx8xUkr-lkp@intel.com/
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@...eaurora.org>
:::::: CC: Philipp Zabel <p.zabel@...gutronix.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists