All of lore.kernel.org
 help / color / mirror / Atom feed
* [l1k:aer_reset_v1 8/9] drivers/net/ethernet/intel/ice/ice_main.c:5765:9: error: implicit declaration of function 'pci_update_current_state'; did you mean 'pci_bus_set_current_state'?
@ 2025-08-10 20:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-10 20:34 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: oe-kbuild-all

tree:   https://github.com/l1k/linux aer_reset_v1
head:   8662972f7327af599ea9fc6299a7b539db1cb461
commit: f522276bfd4031fcf8dbd92dd71111c68ba6f9aa [8/9] ice: Fix enable_cnt imbalance on PCIe error recovery
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20250811/202508110416.tnArFNMS-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250811/202508110416.tnArFNMS-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508110416.tnArFNMS-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/net/ethernet/intel/ice/ice_main.c: In function 'ice_pci_err_slot_reset':
>> drivers/net/ethernet/intel/ice/ice_main.c:5765:9: error: implicit declaration of function 'pci_update_current_state'; did you mean 'pci_bus_set_current_state'? [-Wimplicit-function-declaration]
    5765 |         pci_update_current_state(pci_dev, PCI_D0);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
         |         pci_bus_set_current_state
>> drivers/net/ethernet/intel/ice/ice_main.c:5765:34: error: 'pci_dev' undeclared (first use in this function)
    5765 |         pci_update_current_state(pci_dev, PCI_D0);
         |                                  ^~~~~~~
   drivers/net/ethernet/intel/ice/ice_main.c:5765:34: note: each undeclared identifier is reported only once for each function it appears in


vim +5765 drivers/net/ethernet/intel/ice/ice_main.c

  5752	
  5753	/**
  5754	 * ice_pci_err_slot_reset - a PCI slot reset has just happened
  5755	 * @pdev: PCI device information struct
  5756	 *
  5757	 * Called to determine if the driver can recover from the PCI slot reset by
  5758	 * using a register read to determine if the device is recoverable.
  5759	 */
  5760	static pci_ers_result_t ice_pci_err_slot_reset(struct pci_dev *pdev)
  5761	{
  5762		struct ice_pf *pf = pci_get_drvdata(pdev);
  5763		u32 reg;
  5764	
> 5765		pci_update_current_state(pci_dev, PCI_D0);
  5766		pci_set_master(pdev);
  5767		pci_restore_state(pdev);
  5768		pci_save_state(pdev);
  5769		pci_wake_from_d3(pdev, false);
  5770	
  5771		/* Check for life */
  5772		reg = rd32(&pf->hw, GLGEN_RTRIG);
  5773		if (!reg)
  5774			return PCI_ERS_RESULT_RECOVERED;
  5775		else
  5776			return PCI_ERS_RESULT_DISCONNECT;
  5777	}
  5778	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-10 20:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-10 20:34 [l1k:aer_reset_v1 8/9] drivers/net/ethernet/intel/ice/ice_main.c:5765:9: error: implicit declaration of function 'pci_update_current_state'; did you mean 'pci_bus_set_current_state'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.