lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201512012058.JdJjJKAX%fengguang.wu@intel.com>
Date:	Tue, 1 Dec 2015 20:28:44 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Boris Brezillon <boris.brezillon@...e-electrons.com>
Cc:	kbuild-all@...org, David Woodhouse <dwmw2@...radead.org>,
	Brian Norris <computersforpeace@...il.com>,
	linux-mtd@...ts.infradead.org, Andrew Lunn <andrew@...n.ch>,
	Krzysztof Kozlowski <k.kozlowski@...sung.com>,
	linux-doc@...r.kernel.org, Tony Lindgren <tony@...mide.com>,
	Stefan Agner <stefan@...er.ch>, linux-sunxi@...glegroups.com,
	Robert Jarzmik <robert.jarzmik@...e.fr>,
	Alexander Clouter <alex@...riz.org.uk>,
	devel@...verdev.osuosl.org,
	Boris Brezillon <boris.brezillon@...e-electrons.com>,
	Jesper Nilsson <jesper.nilsson@...s.com>,
	linux-samsung-soc@...r.kernel.org,
	Maxim Levitsky <maximlevitsky@...il.com>,
	Jonathan Corbet <corbet@....net>,
	Marek Vasut <marek.vasut@...il.com>,
	Chen-Yu Tsai <wens@...e.org>, Kukjin Kim <kgene@...nel.org>,
	Ezequiel Garcia <ezequiel.garcia@...e-electrons.com>,
	Josh Wu <josh.wu@...el.com>,
	Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
	Jason Cooper <jason@...edaemon.net>,
	Wan ZongShun <mcuos.com@...il.com>,
	Steven Miao <realmz6@...il.com>,
	adi-buildroot-devel@...ts.sourceforge.net,
	Haojian Zhuang <haojian.zhuang@...il.com>,
	Mikael Starvik <starvik@...s.com>,
	Julia Lawall <Julia.Lawall@...6.fr>,
	Krzysztof Halasa <khalasa@...p.pl>,
	Gregory CLEMENT <gregory.clement@...e-electrons.com>,
	linux-omap@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
	Ryan Mallon <rmallon@...il.com>, linux-cris-kernel@...s.com,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	linux-kernel@...r.kernel.org, Sascha Hauer <kernel@...gutronix.de>,
	Maxime Ripard <maxime.ripard@...e-electrons.com>,
	Imre Kaloz <kaloz@...nwrt.org>,
	Shawn Guo <shawnguo@...nel.org>,
	Daniel Mack <daniel@...que.org>
Subject: Re: [PATCH v2 12/25] mtd: nand: use the mtd instance embedded in
 struct nand_chip

Hi Boris,

[auto build test ERROR on next-20151127]
[cannot apply to mtd/master v4.4-rc3 v4.4-rc2 v4.4-rc1 v4.4-rc3]

url:    https://github.com/0day-ci/linux/commits/Boris-Brezillon/mtd-nand-refactor-the-NAND-subsystem-part-1/20151201-190822
config: arm-imx_v6_v7_defconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/mtd/nand/gpmi-nand/gpmi-nand.c: In function 'set_geometry_by_ecc_info':
>> drivers/mtd/nand/gpmi-nand/gpmi-nand.c:142:39: error: 'mtd' undeclared (first use in this function)
     struct nand_chip *chip = mtd_to_nand(mtd);
                                          ^
   drivers/mtd/nand/gpmi-nand/gpmi-nand.c:142:39: note: each undeclared identifier is reported only once for each function it appears in
   drivers/mtd/nand/gpmi-nand/gpmi-nand.c: In function 'gpmi_init_last':
   drivers/mtd/nand/gpmi-nand/gpmi-nand.c:1840:39: error: 'mtd' undeclared (first use in this function)
     struct nand_chip *chip = mtd_to_nand(mtd);
                                          ^
   drivers/mtd/nand/gpmi-nand/gpmi-nand.c:1841:19: warning: unused variable 'mtd' [-Wunused-variable]
     struct mtd_info *mtd = nand_to_mtd(chip);
                      ^

vim +/mtd +142 drivers/mtd/nand/gpmi-nand/gpmi-nand.c

2febcdf84 Huang Shijie    2013-05-17  136   *
2febcdf84 Huang Shijie    2013-05-17  137   * We may have available oob space in this case.
2febcdf84 Huang Shijie    2013-05-17  138   */
2febcdf84 Huang Shijie    2013-05-17  139  static bool set_geometry_by_ecc_info(struct gpmi_nand_data *this)
2febcdf84 Huang Shijie    2013-05-17  140  {
2febcdf84 Huang Shijie    2013-05-17  141  	struct bch_geometry *geo = &this->bch_geometry;
6bdedcfa5 Boris Brezillon 2015-12-01 @142  	struct nand_chip *chip = mtd_to_nand(mtd);
4864cfd67 Boris Brezillon 2015-12-01  143  	struct mtd_info *mtd = nand_to_mtd(chip);
2febcdf84 Huang Shijie    2013-05-17  144  	struct nand_oobfree *of = gpmi_hw_ecclayout.oobfree;
2febcdf84 Huang Shijie    2013-05-17  145  	unsigned int block_mark_bit_offset;

:::::: The code at line 142 was first introduced by commit
:::::: 6bdedcfa57b52f471682054a599855677b1b132c mtd: nand: make use of mtd_to_nand() in NAND drivers

:::::: TO: Boris Brezillon <boris.brezillon@...e-electrons.com>
:::::: CC: 0day robot <fengguang.wu@...el.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/octet-stream" (28779 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ