[PATCH v2 14/15] mtd: nand: hynix: rework NAND ID decoding to extract more information

kbuild test robot lkp at intel.com
Wed Jun 8 07:34:35 PDT 2016


Hi,

[auto build test ERROR on mtd/master]
[also build test ERROR on v4.7-rc2 next-20160608]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Boris-Brezillon/mtd-nand-allow-vendor-specific-detection-initialization/20160608-210755
base:   git://git.infradead.org/linux-mtd.git master
config: x86_64-randconfig-s3-06081945 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/mtd/nand/nand_hynix.c: In function 'hynix_nand_decode_id':
>> drivers/mtd/nand/nand_hynix.c:239:20: error: 'SZ_1M' undeclared (first use in this function)
      mtd->erasesize = SZ_1M << tmp;
                       ^~~~~
   drivers/mtd/nand/nand_hynix.c:239:20: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/mtd/nand/nand_hynix.c:241:20: error: 'SZ_512K' undeclared (first use in this function)
      mtd->erasesize = SZ_512K + SZ_256K;
                       ^~~~~~~
>> drivers/mtd/nand/nand_hynix.c:241:30: error: 'SZ_256K' undeclared (first use in this function)
      mtd->erasesize = SZ_512K + SZ_256K;
                                 ^~~~~~~
>> drivers/mtd/nand/nand_hynix.c:243:20: error: 'SZ_128K' undeclared (first use in this function)
      mtd->erasesize = SZ_128K << tmp;
                       ^~~~~~~

vim +/SZ_1M +239 drivers/mtd/nand/nand_hynix.c

   233		 * we start counting at 128KiB and shift this value the content of
   234		 * ID[3][4:5].
   235		 * The only exception is when ID[3][4:5] == 3 and ID[3][7] == 0, in
   236		 * this case the erasesize is set to 768KiB.
   237		 */
   238		if (chip->id.data[3] & 0x80)
 > 239			mtd->erasesize = SZ_1M << tmp;
   240		else if (tmp == 3)
 > 241			mtd->erasesize = SZ_512K + SZ_256K;
   242		else
 > 243			mtd->erasesize = SZ_128K << tmp;
   244	
   245		/*
   246		 * Modern Toggle DDR NANDs have a valid JEDECID even though they are

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 26572 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20160608/8dcb2aba/attachment-0001.obj>


More information about the linux-mtd mailing list