[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'?

[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/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: .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