Hi Andrii,

kernel test robot noticed the following build errors:

[auto build test ERROR on tnguy-net-queue/dev-queue]

url:    
https://github.com/intel-lab-lkp/linux/commits/Andrii-Staikov/i40e-Restore-VF-MSI-X-state-during-PCI-reset/20231206-205526
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue.git 
dev-queue
patch link:    
https://lore.kernel.org/r/20231206125127.218350-1-andrii.staikov%40intel.com
patch subject: [Intel-wired-lan] [PATCH iwl-net v3] i40e: Restore VF MSI-X 
state during PCI reset
config: powerpc-ppc64_defconfig 
(https://download.01.org/0day-ci/archive/20231208/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231208/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c: In function 
'i40e_restore_all_vfs_msi_state':
>> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:175:58: error: 'struct 
>> pci_dev' has no member named 'physfn'; did you mean 'is_physfn'?
     175 |                         if (vf_dev->is_virtfn && vf_dev->physfn == 
pdev)
         |                                                          ^~~~~~
         |                                                          is_physfn


vim +175 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

   156  
   157  void i40e_restore_all_vfs_msi_state(struct pci_dev *pdev)
   158  {
   159          u16 vf_id;
   160          u16 pos;
   161  
   162          /* Continue only if this is a PF */
   163          if (!pdev->is_physfn)
   164                  return;
   165  
   166          if (!pci_num_vf(pdev))
   167                  return;
   168  
   169          pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
   170          if (pos) {
   171                  struct pci_dev *vf_dev = NULL;
   172  
   173                  pci_read_config_word(pdev, pos + PCI_SRIOV_VF_DID, 
&vf_id);
   174                  while ((vf_dev = pci_get_device(pdev->vendor, vf_id, 
vf_dev))) {
 > 175                          if (vf_dev->is_virtfn && vf_dev->physfn == pdev)
   176                                  pci_restore_msi_state(vf_dev);
   177                  }
   178          }
   179  }
   180  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

Reply via email to