Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1417500

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

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 14/15] mtd: nand: hynix: rework NAND ID decoding to extract more information
Date 2016-06-08 16:20 +0200
Message-ID <rHMuT-1eQ-49@gated-at.bofh.it> (permalink)
References <rHLp8-yc-45@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 14/15] mtd: nand: hynix: rework NAND ID decoding to extract more information Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-06-08 15:10 +0200
  Re: [PATCH v2 14/15] mtd: nand: hynix: rework NAND ID decoding to  extract more information kbuild test robot <lkp@intel.com> - 2016-06-08 16:20 +0200

csiph-web