[pci:pci/host-xgene 16/16] drivers/pci/host/pci-xgene.c:224:16: error: 'csr_base' undeclared

[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:   184d8a009a0b6ab1a0555dd53299103fcfbace98
commit: 184d8a009a0b6ab1a0555dd53299103fcfbace98 [16/16] PCI: xgene: Add register accessors
config: arm64-allmodconfig (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 184d8a009a0b6ab1a0555dd53299103fcfbace98
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/swab.h:4:0,
                    from include/uapi/linux/byteorder/big_endian.h:12,
                    from include/linux/byteorder/big_endian.h:4,
                    from arch/arm64/include/uapi/asm/byteorder.h:20,
                    from include/asm-generic/bitops/le.h:5,
                    from arch/arm64/include/asm/bitops.h:50,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/clk.h:16,
                    from drivers/pci/host/pci-xgene.c:19:
   drivers/pci/host/pci-xgene.c: In function 'xgene_pcie_linkup':
>> drivers/pci/host/pci-xgene.c:224:16: error: 'csr_base' undeclared (first use in this function)
     val32 = readl(csr_base + PCIECORE_CTLANDSTATUS);
                   ^
   include/uapi/linux/swab.h:116:32: note: in definition of macro '__swab32'
     (__builtin_constant_p((__u32)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:88:21: note: in expansion of macro '__le32_to_cpu'
    #define le32_to_cpu __le32_to_cpu
                        ^~~~~~~~~~~~~
   arch/arm64/include/asm/io.h:137:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
>> drivers/pci/host/pci-xgene.c:224:10: note: in expansion of macro 'readl'
     val32 = readl(csr_base + PCIECORE_CTLANDSTATUS);
             ^~~~~
   drivers/pci/host/pci-xgene.c:224:16: note: each undeclared identifier is reported only once for each function it appears in
     val32 = readl(csr_base + PCIECORE_CTLANDSTATUS);
                   ^
   include/uapi/linux/swab.h:116:32: note: in definition of macro '__swab32'
     (__builtin_constant_p((__u32)(x)) ? \
                                   ^
   include/linux/byteorder/generic.h:88:21: note: in expansion of macro '__le32_to_cpu'
    #define le32_to_cpu __le32_to_cpu
                        ^~~~~~~~~~~~~
   arch/arm64/include/asm/io.h:137:32: note: in expansion of macro 'readl_relaxed'
    #define readl(c)  ({ u32 __v = readl_relaxed(c); __iormb(); __v; })
                                   ^~~~~~~~~~~~~
>> drivers/pci/host/pci-xgene.c:224:10: note: in expansion of macro 'readl'
     val32 = readl(csr_base + PCIECORE_CTLANDSTATUS);
             ^~~~~

vim +/csr_base +224 drivers/pci/host/pci-xgene.c

5f6b6ccd Tanmay Inamdar 2014-10-01  218  static void xgene_pcie_linkup(struct xgene_pcie_port *port,
5f6b6ccd Tanmay Inamdar 2014-10-01  219  				   u32 *lanes, u32 *speed)
5f6b6ccd Tanmay Inamdar 2014-10-01  220  {
5f6b6ccd Tanmay Inamdar 2014-10-01  221  	u32 val32;
5f6b6ccd Tanmay Inamdar 2014-10-01  222  
5f6b6ccd Tanmay Inamdar 2014-10-01  223  	port->link_up = false;
5f6b6ccd Tanmay Inamdar 2014-10-01 @224  	val32 = readl(csr_base + PCIECORE_CTLANDSTATUS);
184d8a00 Bjorn Helgaas  2016-10-06  225  	val32 = xgene_pcie_readl(port, PCIECORE_CTLANDSTATUS);
5f6b6ccd Tanmay Inamdar 2014-10-01  226  	if (val32 & LINK_UP_MASK) {
5f6b6ccd Tanmay Inamdar 2014-10-01  227  		port->link_up = true;

:::::: The code at line 224 was first introduced by commit
:::::: 5f6b6ccdbe1cdfa5aa4347ec5412509b8995db27 PCI: xgene: Add APM X-Gene PCIe driver

:::::: TO: Tanmay Inamdar <tinamdar@xxxxxxx>
:::::: CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>

---
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