All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2023-06-18  8:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-06-18  8:09 UTC (permalink / raw)
  To: Sasha Levin; +Cc: oe-kbuild-all

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

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

only message in thread, other threads:[~2023-06-18  8:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-18  8:09 [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' 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.