[pci:pci/host-xgene 16/17] drivers/pci/host/pci-xgene.c:125:2: error: implicit declaration of function 'xgene_pcie_write'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-xgene
head:   d7f085ebc16657a04a39c1c35ce41fb287fe3124
commit: 966d0acb5184ada52e4e6d7da0f600fdf8a63524 [16/17] PCI: xgene: Add register accessors
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 966d0acb5184ada52e4e6d7da0f600fdf8a63524
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   drivers/pci/host/pci-xgene.c: In function 'xgene_pcie_set_rtdid_reg':
>> drivers/pci/host/pci-xgene.c:125:2: error: implicit declaration of function 'xgene_pcie_write' [-Werror=implicit-function-declaration]
     xgene_pcie_write(xgene_pcie, RTDID, rtdid_val);
     ^~~~~~~~~~~~~~~~
   drivers/pci/host/pci-xgene.c: In function 'xgene_pcie_setup':
   drivers/pci/host/pci-xgene.c:498:23: error: 'port' undeclared (first use in this function)
     struct device *dev = port->dev;
                          ^~~~
   drivers/pci/host/pci-xgene.c:498:23: note: each undeclared identifier is reported only once for each function it appears in
   At top level:
   drivers/pci/host/pci-xgene.c:84:13: warning: 'xgene_pcie_writel' defined but not used [-Wunused-function]
    static void xgene_pcie_writel(struct xgene_pcie *xgene_pcie, u32 reg, u32 val)
                ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/xgene_pcie_write +125 drivers/pci/host/pci-xgene.c

   119		d = PCI_SLOT(devfn);
   120		f = PCI_FUNC(devfn);
   121	
   122		if (!pci_is_root_bus(bus))
   123			rtdid_val = (b << 8) | (d << 3) | f;
   124	
 > 125		xgene_pcie_write(xgene_pcie, RTDID, rtdid_val);
   126		/* read the register back to ensure flush */
   127		xgene_pcie_readl(xgene_pcie, RTDID);
   128	}

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux