[tip:WIP.hotplug 30/32] drivers//pci/pci-driver.c:342:27: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'?

From: kbuild test robot
Date: Thu Apr 13 2017 - 19:31:01 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.hotplug
head: 355d9c03df2c702f4fc346b94b8d3dfa5992aa65
commit: 295afd420469ed67ea4c5c4b3fdf1bba5331f33e [30/32] PCI: Use cpu_hotplug_disable() instead of get_online_cpus()
config: x86_64-randconfig-x017-201715 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 295afd420469ed67ea4c5c4b3fdf1bba5331f33e
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers//pci/pci-driver.c: In function 'pci_call_probe':
>> drivers//pci/pci-driver.c:342:27: error: 'struct pci_dev' has no member named 'physfn'; did you mean 'is_physfn'?
if (dev->is_virtfn && dev->physfn->is_probed)
^~

vim +342 drivers//pci/pci-driver.c

336
337 cpu_hotplug_disable();
338 /*
339 * Prevent nesting work_on_cpu() for the case where a Virtual Function
340 * device is probed from work_on_cpu() of the Physical device.
341 */
> 342 if (dev->is_virtfn && dev->physfn->is_probed)
343 cpu = nr_cpu_ids;
344 else
345 cpu = cpumask_any_and(cpumask_of_node(node), cpu_online_mask);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip