All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sasha Levin <sashal@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [sashal-stable:pending-5.10 61/71] drivers/net/ethernet/intel/igc/igc_main.c:5420:2: error: implicit declaration of function 'pci_disable_ptm'
Date: Sun, 18 Jun 2023 16:09:11 +0800	[thread overview]
Message-ID: <202306181629.9IfRMfEn-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head:   87acf79f290bed063b819f50da30208e7d2a263a
commit: c074b9f5ab1ed5f73eb9cab7b1a3bcea36a1f1c5 [61/71] igc: Fix possible system crash when loading module
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230618/202306181629.9IfRMfEn-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230618/202306181629.9IfRMfEn-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/202306181629.9IfRMfEn-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/intel/igc/igc_main.c:5420:2: error: implicit declaration of function 'pci_disable_ptm' [-Werror,-Wimplicit-function-declaration]
           pci_disable_ptm(pdev);
           ^
   drivers/net/ethernet/intel/igc/igc_main.c:5420:2: note: did you mean 'pci_disable_rom'?
   include/linux/pci.h:1247:6: note: 'pci_disable_rom' declared here
   void pci_disable_rom(struct pci_dev *pdev);
        ^
   1 error generated.


vim +/pci_disable_ptm +5420 drivers/net/ethernet/intel/igc/igc_main.c

  5399	
  5400	/**
  5401	 * igc_remove - Device Removal Routine
  5402	 * @pdev: PCI device information struct
  5403	 *
  5404	 * igc_remove is called by the PCI subsystem to alert the driver
  5405	 * that it should release a PCI device.  This could be caused by a
  5406	 * Hot-Plug event, or because the driver is going to be removed from
  5407	 * memory.
  5408	 */
  5409	static void igc_remove(struct pci_dev *pdev)
  5410	{
  5411		struct net_device *netdev = pci_get_drvdata(pdev);
  5412		struct igc_adapter *adapter = netdev_priv(netdev);
  5413	
  5414		pm_runtime_get_noresume(&pdev->dev);
  5415	
  5416		igc_flush_nfc_rules(adapter);
  5417	
  5418		igc_ptp_stop(adapter);
  5419	
> 5420		pci_disable_ptm(pdev);
  5421		pci_clear_master(pdev);
  5422	
  5423		set_bit(__IGC_DOWN, &adapter->state);
  5424	
  5425		del_timer_sync(&adapter->watchdog_timer);
  5426		del_timer_sync(&adapter->phy_info_timer);
  5427	
  5428		cancel_work_sync(&adapter->reset_task);
  5429		cancel_work_sync(&adapter->watchdog_task);
  5430	
  5431		/* Release control of h/w to f/w.  If f/w is AMT enabled, this
  5432		 * would have already happened in close and is redundant.
  5433		 */
  5434		igc_release_hw_control(adapter);
  5435		unregister_netdev(netdev);
  5436	
  5437		igc_clear_interrupt_scheme(adapter);
  5438		pci_iounmap(pdev, adapter->io_addr);
  5439		pci_release_mem_regions(pdev);
  5440	
  5441		free_netdev(netdev);
  5442	
  5443		pci_disable_pcie_error_reporting(pdev);
  5444	
  5445		pci_disable_device(pdev);
  5446	}
  5447	

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

                 reply	other threads:[~2023-06-18  8:10 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=202306181629.9IfRMfEn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sashal@kernel.org \
    /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.