public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kees Cook <keescook@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>
Subject: drivers/mtd/nand/raw/sunxi_nand.c:201: warning: Excess struct member 'sels' description in 'sunxi_nand_chip'
Date: Fri, 15 Dec 2023 07:25:31 +0800	[thread overview]
Message-ID: <202312150752.IeutuS1p-lkp@intel.com> (raw)

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@intel.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@free-electrons.com>
:::::: CC: Brian Norris <computersforpeace@gmail.com>

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

                 reply	other threads:[~2023-12-14 23:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202312150752.IeutuS1p-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gustavoars@kernel.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox