tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-cleanups-wip head: d043f96bad5fa3ffb3896411f2ba2bc5180a7c83 commit: 082aedcbeafa421f14517eb8d1b4197a62711870 [141/152] 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 082aedcbeafa421f14517eb8d1b4197a62711870 # save the attached .config to linux build tree make.cross ARCH=arm64 All warnings (new ones prefixed by >>): drivers/pci/host/pci-xgene.c: In function 'xgene_pcie_setup_ib_reg': >> drivers/pci/host/pci-xgene.c:391:16: warning: unused variable 'csr_base' [-Wunused-variable] void __iomem *csr_base = xgene->csr_base; ^~~~~~~~ vim +/csr_base +391 drivers/pci/host/pci-xgene.c 5f6b6ccd Tanmay Inamdar 2014-10-01 375 if ((size > SZ_1K) && (size < SZ_1T) && !(*ib_reg_mask & (1 << 0))) { 5f6b6ccd Tanmay Inamdar 2014-10-01 376 *ib_reg_mask |= (1 << 0); 5f6b6ccd Tanmay Inamdar 2014-10-01 377 return 0; 5f6b6ccd Tanmay Inamdar 2014-10-01 378 } 5f6b6ccd Tanmay Inamdar 2014-10-01 379 5f6b6ccd Tanmay Inamdar 2014-10-01 380 if ((size > SZ_1M) && (size < SZ_1T) && !(*ib_reg_mask & (1 << 2))) { 5f6b6ccd Tanmay Inamdar 2014-10-01 381 *ib_reg_mask |= (1 << 2); 5f6b6ccd Tanmay Inamdar 2014-10-01 382 return 2; 5f6b6ccd Tanmay Inamdar 2014-10-01 383 } 5f6b6ccd Tanmay Inamdar 2014-10-01 384 5f6b6ccd Tanmay Inamdar 2014-10-01 385 return -EINVAL; 5f6b6ccd Tanmay Inamdar 2014-10-01 386 } 5f6b6ccd Tanmay Inamdar 2014-10-01 387 544ecd62 Bjorn Helgaas 2016-10-05 388 static void xgene_pcie_setup_ib_reg(struct xgene_pcie_port *xgene, 5f6b6ccd Tanmay Inamdar 2014-10-01 389 struct of_pci_range *range, u8 *ib_reg_mask) 5f6b6ccd Tanmay Inamdar 2014-10-01 390 { 544ecd62 Bjorn Helgaas 2016-10-05 @391 void __iomem *csr_base = xgene->csr_base; 544ecd62 Bjorn Helgaas 2016-10-05 392 void __iomem *cfg_base = xgene->cfg_base; 5f6b6ccd Tanmay Inamdar 2014-10-01 393 void *bar_addr; a935a261 Bjorn Helgaas 2016-10-05 394 u32 pim_reg; 5f6b6ccd Tanmay Inamdar 2014-10-01 395 u64 cpu_addr = range->cpu_addr; 5f6b6ccd Tanmay Inamdar 2014-10-01 396 u64 pci_addr = range->pci_addr; 5f6b6ccd Tanmay Inamdar 2014-10-01 397 u64 size = range->size; 5f6b6ccd Tanmay Inamdar 2014-10-01 398 u64 mask = ~(size - 1) | EN_REG; 5f6b6ccd Tanmay Inamdar 2014-10-01 399 u32 flags = PCI_BASE_ADDRESS_MEM_TYPE_64; :::::: The code at line 391 was first introduced by commit :::::: 544ecd625bf637535db2f87bf870f926bb3b8dfe PCI: xgene: Name private struct pointer "xgene" consistently :::::: TO: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> :::::: 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