Message ID | 1458761338-60155-1-git-send-email-babu.moger@oracle.com |
---|---|
State | Changes Requested |
Delegated to: | David Miller |
Headers | show |
Hi Babu, [auto build test ERROR on sparc/master] [also build test ERROR on v4.5 next-20160323] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Babu-Moger/sparc-PCI-Fix-for-panic-while-enabling-SR-IOV/20160324-033121 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc.git master config: sparc64-defconfig (attached as .config) 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 # save the attached .config to linux build tree make.cross ARCH=sparc64 All errors (new ones prefixed by >>): arch/sparc/kernel/pci.c: In function 'pcibios_add_device': >> arch/sparc/kernel/pci.c:1005:13: error: 'struct pci_dev' has no member named 'physfn' pdev = dev->physfn; ^ vim +1005 arch/sparc/kernel/pci.c 999 struct pci_dev *pdev; 1000 /* 1001 * Add sriov arch specific initialization here. 1002 * Copy dev_archdata from PF to VF 1003 */ 1004 if (dev->is_virtfn) { > 1005 pdev = dev->physfn; 1006 memcpy(&dev->dev.archdata, &pdev->dev.archdata, 1007 sizeof(struct dev_archdata)); 1008 } --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index badf095..7749b65 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c @@ -994,6 +994,21 @@ void pcibios_set_master(struct pci_dev *dev) /* No special bus mastering setup handling */ } +int pcibios_add_device(struct pci_dev *dev) +{ + struct pci_dev *pdev; + /* + * Add sriov arch specific initialization here. + * Copy dev_archdata from PF to VF + */ + if (dev->is_virtfn) { + pdev = dev->physfn; + memcpy(&dev->dev.archdata, &pdev->dev.archdata, + sizeof(struct dev_archdata)); + } + return 0; +} + static int __init pcibios_init(void) { pci_dfl_cache_line_size = 64 >> 2;