* [pci:pci/virtualization 1/2] drivers/pci/probe.c:1460:15: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'?
@ 2018-10-11 17:16 kbuild test robot
2018-10-11 19:36 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2018-10-11 17:16 UTC (permalink / raw)
To: KarimAllah Ahmed; +Cc: kbuild-all, linux-pci, Bjorn Helgaas
[-- Attachment #1: Type: text/plain, Size: 1960 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/virtualization
head: 71fad47b6941d0922562a1e5e32f57b99f9f2c32
commit: 601f9f6679157b70a7a4e752baa590bd2af69ffb [1/2] PCI/IOV: Use VF0 cached config space size for other VFs
config: i386-randconfig-x002-201840 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 601f9f6679157b70a7a4e752baa590bd2af69ffb
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
drivers/pci/probe.c: In function 'pci_cfg_space_size':
>> drivers/pci/probe.c:1460:15: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'?
return dev->physfn->sriov->cfg_size;
^~~~~~
is_physfn
vim +1460 drivers/pci/probe.c
1451
1452 int pci_cfg_space_size(struct pci_dev *dev)
1453 {
1454 int pos;
1455 u32 status;
1456 u16 class;
1457
1458 /* Read cached value for all VFs except for VF0 */
1459 if (dev->is_virtfn && !is_vf0(dev))
> 1460 return dev->physfn->sriov->cfg_size;
1461
1462 if (dev->bus->bus_flags & PCI_BUS_FLAGS_NO_EXTCFG)
1463 return PCI_CFG_SPACE_SIZE;
1464
1465 class = dev->class >> 8;
1466 if (class == PCI_CLASS_BRIDGE_HOST)
1467 return pci_cfg_space_size_ext(dev);
1468
1469 if (pci_is_pcie(dev))
1470 return pci_cfg_space_size_ext(dev);
1471
1472 pos = pci_find_capability(dev, PCI_CAP_ID_PCIX);
1473 if (!pos)
1474 return PCI_CFG_SPACE_SIZE;
1475
1476 pci_read_config_dword(dev, pos + PCI_X_STATUS, &status);
1477 if (status & (PCI_X_STATUS_266MHZ | PCI_X_STATUS_533MHZ))
1478 return pci_cfg_space_size_ext(dev);
1479
1480 return PCI_CFG_SPACE_SIZE;
1481 }
1482
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27374 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [pci:pci/virtualization 1/2] drivers/pci/probe.c:1460:15: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'?
2018-10-11 17:16 [pci:pci/virtualization 1/2] drivers/pci/probe.c:1460:15: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'? kbuild test robot
@ 2018-10-11 19:36 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2018-10-11 19:36 UTC (permalink / raw)
To: kbuild test robot; +Cc: KarimAllah Ahmed, kbuild-all, linux-pci
On Fri, Oct 12, 2018 at 01:16:19AM +0800, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/virtualization
> head: 71fad47b6941d0922562a1e5e32f57b99f9f2c32
> commit: 601f9f6679157b70a7a4e752baa590bd2af69ffb [1/2] PCI/IOV: Use VF0 cached config space size for other VFs
> config: i386-randconfig-x002-201840 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
> git checkout 601f9f6679157b70a7a4e752baa590bd2af69ffb
> # save the attached .config to linux build tree
> make ARCH=i386
>
> All errors (new ones prefixed by >>):
>
> drivers/pci/probe.c: In function 'pci_cfg_space_size':
> >> drivers/pci/probe.c:1460:15: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'?
> return dev->physfn->sriov->cfg_size;
> ^~~~~~
> is_physfn
Sorry, this was my fault. I fixed it.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-11 19:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-11 17:16 [pci:pci/virtualization 1/2] drivers/pci/probe.c:1460:15: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'? kbuild test robot
2018-10-11 19:36 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).