[helgaas-pci:pci/pm 1/1] drivers/pci/pci-driver.c:1315:9: error: implicit declaration of function 'pci_pm_default_resume_early'; did you mean 'pci_pm_default_resume'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/pm
head:   53b3488879cff3b3a238e3e9651c2e2879f422cf
commit: 53b3488879cff3b3a238e3e9651c2e2879f422cf [1/1] PCI/PM: Power up all devices during runtime resume
config: i386-randconfig-a014 (https://download.01.org/0day-ci/archive/20220408/202204080225.iXDZAkO2-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?id=53b3488879cff3b3a238e3e9651c2e2879f422cf
        git remote add helgaas-pci https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
        git fetch --no-tags helgaas-pci pci/pm
        git checkout 53b3488879cff3b3a238e3e9651c2e2879f422cf
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/pci/pci-driver.c: In function 'pci_pm_runtime_resume':
>> drivers/pci/pci-driver.c:1315:9: error: implicit declaration of function 'pci_pm_default_resume_early'; did you mean 'pci_pm_default_resume'? [-Werror=implicit-function-declaration]
    1315 |         pci_pm_default_resume_early(pci_dev);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         pci_pm_default_resume
   At top level:
   drivers/pci/pci-driver.c:533:12: warning: 'pci_restore_standard_config' defined but not used [-Wunused-function]
     533 | static int pci_restore_standard_config(struct pci_dev *pci_dev)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +1315 drivers/pci/pci-driver.c

  1302	
  1303	static int pci_pm_runtime_resume(struct device *dev)
  1304	{
  1305		struct pci_dev *pci_dev = to_pci_dev(dev);
  1306		const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
  1307		pci_power_t prev_state = pci_dev->current_state;
  1308		int error = 0;
  1309	
  1310		/*
  1311		 * Restoring config space is necessary even if the device is not bound
  1312		 * to a driver because although we left it in D0, it may have gone to
  1313		 * D3cold when the bridge above it runtime suspended.
  1314		 */
> 1315		pci_pm_default_resume_early(pci_dev);
  1316	
  1317		if (!pci_dev->driver)
  1318			return 0;
  1319	
  1320		pci_fixup_device(pci_fixup_resume_early, pci_dev);
  1321		pci_pm_default_resume(pci_dev);
  1322	
  1323		if (prev_state == PCI_D3cold)
  1324			pci_bridge_wait_for_secondary_bus(pci_dev);
  1325	
  1326		if (pm && pm->runtime_resume)
  1327			error = pm->runtime_resume(dev);
  1328	
  1329		pci_dev->runtime_d3cold = false;
  1330	
  1331		return error;
  1332	}
  1333	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux