[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202312150752.IeutuS1p-lkp@intel.com>
Date: Fri, 15 Dec 2023 07:25:31 +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,
Miquel Raynal <miquel.raynal@...tlin.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>
Subject: drivers/mtd/nand/raw/sunxi_nand.c:201: warning: Excess struct member
'sels' description in 'sunxi_nand_chip'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5bd7ef53ffe5ca580e93e74eb8c81ed191ddc4bd
commit: 28a05da765c0cd21654ef5fed3b53af5cd278d63 mtd: rawnand: sunxi: Annotate struct sunxi_nand_chip with __counted_by
date: 3 months ago
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20231215/202312150752.IeutuS1p-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231215/202312150752.IeutuS1p-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/202312150752.IeutuS1p-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/mtd/nand/raw/sunxi_nand.c:201: warning: Excess struct member 'sels' description in 'sunxi_nand_chip'
vim +201 drivers/mtd/nand/raw/sunxi_nand.c
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 179
67c88008c3e24a drivers/mtd/nand/raw/sunxi_nand.c Boris Brezillon 2018-12-15 180 /**
67c88008c3e24a drivers/mtd/nand/raw/sunxi_nand.c Boris Brezillon 2018-12-15 181 * struct sunxi_nand_chip - stores NAND chip device related information
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 182 *
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 183 * @node: used to store NAND chips into a list
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 184 * @nand: base NAND chip structure
cbd87780bed580 drivers/mtd/nand/raw/sunxi_nand.c Miquel Raynal 2020-09-30 185 * @ecc: ECC controller structure
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 186 * @clk_rate: clk_rate required for this NAND chip
67c88008c3e24a drivers/mtd/nand/raw/sunxi_nand.c Boris Brezillon 2018-12-15 187 * @timing_cfg: TIMING_CFG register value for this NAND chip
67c88008c3e24a drivers/mtd/nand/raw/sunxi_nand.c Boris Brezillon 2018-12-15 188 * @timing_ctl: TIMING_CTL register value for this NAND chip
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 189 * @nsels: number of CS lines required by the NAND chip
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 190 * @sels: array of CS lines descriptions
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 191 */
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 192 struct sunxi_nand_chip {
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 193 struct list_head node;
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 194 struct nand_chip nand;
ac1c7072e38e49 drivers/mtd/nand/raw/sunxi_nand.c Samuel Holland 2023-02-04 195 struct sunxi_nand_hw_ecc ecc;
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 196 unsigned long clk_rate;
9c618292dba6aa drivers/mtd/nand/sunxi_nand.c Roy Spliet 2015-06-26 197 u32 timing_cfg;
d052e508a4069f drivers/mtd/nand/sunxi_nand.c Roy Spliet 2015-06-26 198 u32 timing_ctl;
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 199 int nsels;
28a05da765c0cd drivers/mtd/nand/raw/sunxi_nand.c Kees Cook 2023-09-15 200 struct sunxi_nand_chip_sel sels[] __counted_by(nsels);
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 @201 };
1fef62c1423b69 drivers/mtd/nand/sunxi_nand.c Boris Brezillon 2014-10-21 202
:::::: The code at line 201 was first introduced by commit
:::::: 1fef62c1423b694da517b18dc80d59a7eaf7dd74 mtd: nand: add sunxi NAND flash controller support
:::::: TO: Boris BREZILLON <boris.brezillon@...e-electrons.com>
:::::: CC: Brian Norris <computersforpeace@...il.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists