Re: [PATCH 2/2] mfd: rtsx: fix build warning

kbuild test robot
2015-10-07T12:41:58Z

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

Hi Sudip,

[auto build test ERROR on v4.3-rc4 -- if it's inappropriate base, please ignore]

config: x86_64-randconfig-x003-201540 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/mfd/rtsx_pcr.c: In function 'rtsx_pci_set_pull_ctl':
>> drivers/mfd/rtsx_pcr.c:572:2: error: 'err' undeclared (first use in this function)
err = rtsx_pci_send_cmd(pcr, 100);
^
drivers/mfd/rtsx_pcr.c:572:2: note: each undeclared identifier is reported only once for each function it appears in

vim +/err +572 drivers/mfd/rtsx_pcr.c

ada8a8a1 Wei WANG 2012-10-29 566 while (*tbl & 0xFFFF0000) {
ada8a8a1 Wei WANG 2012-10-29 567 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD,
ada8a8a1 Wei WANG 2012-10-29 568 (u16)(*tbl >> 16), 0xFF, (u8)(*tbl));
ada8a8a1 Wei WANG 2012-10-29 569 tbl++;
ada8a8a1 Wei WANG 2012-10-29 570 }
ada8a8a1 Wei WANG 2012-10-29 571
ada8a8a1 Wei WANG 2012-10-29 @572 err = rtsx_pci_send_cmd(pcr, 100);
ada8a8a1 Wei WANG 2012-10-29 573 if (err < 0)
ada8a8a1 Wei WANG 2012-10-29 574 return err;
ada8a8a1 Wei WANG 2012-10-29 575

:::::: The code at line 572 was first introduced by commit
:::::: ada8a8a13b13a2749818524a7949935f68d2b3eb mfd: Add realtek pcie card reader driver

:::::: TO: Wei WANG <wei_wang@realsil.com.cn>
:::::: CC: Samuel Ortiz <sameo@linux.intel.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 31195 bytes --]