LKML Archive on lore.kernel.org
 help / color / Atom feed
* drivers/mtd/nand/raw/xway_nand.c:227:30: error: 'mtd' undeclared
@ 2020-07-05  2:22 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-05  2:22 UTC (permalink / raw)
  To: Miquel Raynal; +Cc: kbuild-all, linux-kernel


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

Hi Miquel,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   35e884f89df4c48566d745dc5a97a0d058d04263
commit: 9fdd78f7bcda3e6a9f53c355529b3bf037c0e24f mtd: rawnand: xway: Stop using nand_release()
date:   5 weeks ago
config: mips-xway_defconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 9fdd78f7bcda3e6a9f53c355529b3bf037c0e24f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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

All errors (new ones prefixed by >>):

   drivers/mtd/nand/raw/xway_nand.c: In function 'xway_nand_remove':
>> drivers/mtd/nand/raw/xway_nand.c:227:30: error: 'mtd' undeclared (first use in this function)
     227 |  ret = mtd_device_unregister(mtd);
         |                              ^~~
   drivers/mtd/nand/raw/xway_nand.c:227:30: note: each undeclared identifier is reported only once for each function it appears in

vim +/mtd +227 drivers/mtd/nand/raw/xway_nand.c

   217	
   218	/*
   219	 * Remove a NAND device.
   220	 */
   221	static int xway_nand_remove(struct platform_device *pdev)
   222	{
   223		struct xway_nand_data *data = platform_get_drvdata(pdev);
   224		struct nand_chip *chip = &data->chip;
   225		int ret;
   226	
 > 227		ret = mtd_device_unregister(mtd);
   228		WARN_ON(ret);
   229		nand_cleanup(chip);
   230	
   231		return 0;
   232	}
   233	

---
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: 18253 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* drivers/mtd/nand/raw/xway_nand.c:227:30: error: 'mtd' undeclared
@ 2020-06-21 16:17 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-06-21 16:17 UTC (permalink / raw)
  To: Miquel Raynal; +Cc: kbuild-all, linux-kernel


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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   64677779e8962c20b580b471790fe42367750599
commit: 9fdd78f7bcda3e6a9f53c355529b3bf037c0e24f mtd: rawnand: xway: Stop using nand_release()
date:   3 weeks ago
config: mips-xway_defconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 9fdd78f7bcda3e6a9f53c355529b3bf037c0e24f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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

All errors (new ones prefixed by >>):

   drivers/mtd/nand/raw/xway_nand.c: In function 'xway_nand_remove':
>> drivers/mtd/nand/raw/xway_nand.c:227:30: error: 'mtd' undeclared (first use in this function)
     227 |  ret = mtd_device_unregister(mtd);
         |                              ^~~
   drivers/mtd/nand/raw/xway_nand.c:227:30: note: each undeclared identifier is reported only once for each function it appears in

vim +/mtd +227 drivers/mtd/nand/raw/xway_nand.c

   217	
   218	/*
   219	 * Remove a NAND device.
   220	 */
   221	static int xway_nand_remove(struct platform_device *pdev)
   222	{
   223		struct xway_nand_data *data = platform_get_drvdata(pdev);
   224		struct nand_chip *chip = &data->chip;
   225		int ret;
   226	
 > 227		ret = mtd_device_unregister(mtd);
   228		WARN_ON(ret);
   229		nand_cleanup(chip);
   230	
   231		return 0;
   232	}
   233	

---
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: 18253 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-05  2:22 drivers/mtd/nand/raw/xway_nand.c:227:30: error: 'mtd' undeclared kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-06-21 16:17 kernel test robot

LKML Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git
	git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git
	git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git
	git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git
	git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git
	git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git
	git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git
	git clone --mirror https://lore.kernel.org/lkml/7 lkml/git/7.git
	git clone --mirror https://lore.kernel.org/lkml/8 lkml/git/8.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml \
		linux-kernel@vger.kernel.org
	public-inbox-index lkml

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git