tree:
https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git pci/endpoint
head: 744c6876e25709c2ef335055abb5b5e226655aa0
commit: 812828eb50727c989394803b08f9800bba19dd72 [20/22] PCI: endpoint: Fix
->set_msix() to take BIR and offset as arguments
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 812828eb50727c989394803b08f9800bba19dd72
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/pci/endpoint/functions/pci-epf-test.c: In function
'pci_epf_test_core_init':
> drivers/pci/endpoint/functions/pci-epf-test.c:697:12: error:
'epf_test' undeclared (first use in this function)
697 |
epf_test->test_reg_bar,
| ^~~~~~~~
drivers/pci/endpoint/functions/pci-epf-test.c:697:12: note: each undeclared identifier
is reported only once for each function it appears in
vim +/epf_test +697 drivers/pci/endpoint/functions/pci-epf-test.c
660
661 static int pci_epf_test_core_init(struct pci_epf *epf)
662 {
663 struct pci_epf_header *header = epf->header;
664 const struct pci_epc_features *epc_features;
665 struct pci_epc *epc = epf->epc;
666 struct device *dev = &epf->dev;
667 bool msix_capable = false;
668 bool msi_capable = true;
669 int ret;
670
671 epc_features = pci_epc_get_features(epc, epf->func_no);
672 if (epc_features) {
673 msix_capable = epc_features->msix_capable;
674 msi_capable = epc_features->msi_capable;
675 }
676
677 ret = pci_epc_write_header(epc, epf->func_no, header);
678 if (ret) {
679 dev_err(dev, "Configuration header write failed\n");
680 return ret;
681 }
682
683 ret = pci_epf_test_set_bar(epf);
684 if (ret)
685 return ret;
686
687 if (msi_capable) {
688 ret = pci_epc_set_msi(epc, epf->func_no, epf->msi_interrupts);
689 if (ret) {
690 dev_err(dev, "MSI configuration failed\n");
691 return ret;
692 }
693 }
694
695 if (msix_capable) {
696 ret = pci_epc_set_msix(epc, epf->func_no, epf->msix_interrupts,
697 epf_test->test_reg_bar,
698
epf_test->msix_table_offset);
699 if (ret) {
700 dev_err(dev, "MSI-X configuration failed\n");
701 return ret;
702 }
703 }
704
705 return 0;
706 }
707
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org