All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lukas Wunner <lukas@wunner.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'?
Date: Mon, 11 Aug 2025 04:34:36 +0800	[thread overview]
Message-ID: <202508110416.tnArFNMS-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-08-10 20:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202508110416.tnArFNMS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=lukas@wunner.de \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.