Re: [PATCH v10 2/3] PCI: dwc: kirin: add PCIe Driver for HiSilicon Kirin SoC

From: kbuild test robot
Date: Mon Jun 19 2017 - 10:03:09 EST

Hi Xiaowei,

[auto build test ERROR on pci/next]
[also build test ERROR on v4.12-rc5 next-20170619]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

base: next
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64

All errors (new ones prefixed by >>):

drivers/pci/dwc/pcie-kirin.c: In function 'kirin_pcie_establish_link':
>> drivers/pci/dwc/pcie-kirin.c:424:12: error: 'dev' undeclared (first use in this function)
dev_err(dev, "Link Fail\n");
drivers/pci/dwc/pcie-kirin.c:424:12: note: each undeclared identifier is reported only once for each function it appears in

vim +/dev +424 drivers/pci/dwc/pcie-kirin.c

419 /* check if the link is up or not */
420 while (!kirin_pcie_link_up(pci)) {
421 usleep_range(LINK_WAIT_MIN, LINK_WAIT_MAX);
422 count++;
423 if (count == 1000) {
> 424 dev_err(dev, "Link Fail\n");
425 return -EINVAL;
426 }
427 }

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: application/gzip