linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Bean Huo <huobean@gmail.com>,
	miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com,
	s.hauer@pengutronix.de, boris.brezillon@collabora.com,
	derosier@gmail.com
Cc: linux-mtd@lists.infradead.org, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, huobean@gmail.com,
	Bean Huo <beanhuo@micron.com>
Subject: Re: [PATCH v4 4/5] mtd: rawnand: Introduce a new function nand_check_is_erased_page()
Date: Mon, 18 May 2020 23:11:50 +0800	[thread overview]
Message-ID: <202005182323.ZlC1tqHX%lkp@intel.com> (raw)
In-Reply-To: <20200518135943.11749-5-huobean@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3044 bytes --]

Hi Bean,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.7-rc6 next-20200518]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Bean-Huo/Micron-SLC-NAND-filling-block/20200518-220231
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>, old ones prefixed by <<):

drivers/mtd/nand/raw/nand_base.c: In function 'nand_check_is_erased_page':
>> drivers/mtd/nand/raw/nand_base.c:2611:2: error: 'max_bitflips' undeclared (first use in this function)
2611 |  max_bitflips = 0;
|  ^~~~~~~~~~~~
drivers/mtd/nand/raw/nand_base.c:2611:2: note: each undeclared identifier is reported only once for each function it appears in

vim +/max_bitflips +2611 drivers/mtd/nand/raw/nand_base.c

  2586	
  2587	/**
  2588	 * nand_check_is_erased_page - check if this page is a empty page
  2589	 * @chip: nand chip info structure
  2590	 * @page_data: data buffer containing the data in the page being checked
  2591	 * @oob: indicate if chip->oob_poi points to oob date of the page
  2592	 *
  2593	 * Returns true if this is an un-programmed page, false otherwise.
  2594	 */
  2595	int nand_check_is_erased_page(struct nand_chip *chip, u8 *page_data, bool oob)
  2596	{
  2597		struct mtd_info *mtd = nand_to_mtd(chip);
  2598		int ret, i;
  2599		u8 *databuf, *eccbuf = NULL;
  2600		struct mtd_oob_region oobregion;
  2601		int datasize, eccbytes = 0;
  2602	
  2603		databuf = page_data;
  2604		datasize = chip->ecc.size;
  2605	
  2606		if (oob) {
  2607			mtd_ooblayout_ecc(mtd, 0, &oobregion);
  2608			eccbuf = chip->oob_poi + oobregion.offset;
  2609			eccbytes = chip->ecc.bytes;
  2610		}
> 2611		max_bitflips = 0;
  2612	
  2613		for (i = 0; i < chip->ecc.steps; i++) {
  2614			ret = nand_check_erased_ecc_chunk(databuf, datasize,
  2615							  eccbuf, eccbytes,
  2616							  NULL, 0, chip->ecc.strength);
  2617			if (ret < 0)
  2618				return false;
  2619	
  2620			databuf += chip->ecc.size;
  2621			eccbuf += chip->ecc.bytes;
  2622		}
  2623	
  2624		return ret;
  2625	}
  2626	EXPORT_SYMBOL(nand_check_is_erased_page);
  2627	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 53985 bytes --]

[-- Attachment #3: Type: text/plain, Size: 144 bytes --]

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2020-05-18 15:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18 13:59 [PATCH v4 0/5] Micron SLC NAND filling block Bean Huo
2020-05-18 13:59 ` [PATCH v4 1/5] mtd: rawnand: group all NAND specific ops into new nand_chip_ops Bean Huo
2020-05-18 13:59 ` [PATCH v4 2/5] mtd: rawnand: Add {pre, post}_erase hooks in nand_chip_ops Bean Huo
2020-05-18 13:59 ` [PATCH v4 3/5] mtd: rawnand: Add write_oob hook " Bean Huo
2020-05-18 13:59 ` [PATCH v4 4/5] mtd: rawnand: Introduce a new function nand_check_is_erased_page() Bean Huo
2020-05-18 15:11   ` kbuild test robot [this message]
2020-05-18 13:59 ` [PATCH v4 5/5] mtd: rawnand: micron: Micron SLC NAND filling block Bean Huo
2020-05-18 18:32   ` Steve deRosier
2020-05-19  9:16     ` Bean Huo
2020-05-18 15:22 ` [PATCH v4 0/5] " Miquel Raynal
2020-05-19  9:04   ` Bean Huo
2020-05-19  9:08     ` Miquel Raynal

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=202005182323.ZlC1tqHX%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=beanhuo@micron.com \
    --cc=boris.brezillon@collabora.com \
    --cc=derosier@gmail.com \
    --cc=huobean@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=s.hauer@pengutronix.de \
    --cc=vigneshr@ti.com \
    /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;
as well as URLs for NNTP newsgroup(s).