[pci:pci/pm 4/7] drivers/pci/pci-driver.c:1348:2: error: implicit declaration of function 'pci_pm_default_resume'; did you mean 'pci_pm_runtime_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:   d17ff4ab7daac4bf26d59a4de3ca22f42492425b
commit: 6d133f6f1934493a0dc0504fa115e5140d010522 [4/7] PCI/PM: Run resume fixups before disabling wakeup events
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6d133f6f1934493a0dc0504fa115e5140d010522
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag
Reported-by: kbuild 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:1348:2: error: implicit declaration of function 'pci_pm_default_resume'; did you mean 'pci_pm_runtime_resume'? [-Werror=implicit-function-declaration]
     pci_pm_default_resume(pci_dev);
     ^~~~~~~~~~~~~~~~~~~~~
     pci_pm_runtime_resume
   cc1: some warnings being treated as errors

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

  1330	
  1331	static int pci_pm_runtime_resume(struct device *dev)
  1332	{
  1333		int rc = 0;
  1334		struct pci_dev *pci_dev = to_pci_dev(dev);
  1335		const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
  1336	
  1337		/*
  1338		 * Restoring config space is necessary even if the device is not bound
  1339		 * to a driver because although we left it in D0, it may have gone to
  1340		 * D3cold when the bridge above it runtime suspended.
  1341		 */
  1342		pci_restore_standard_config(pci_dev);
  1343	
  1344		if (!pci_dev->driver)
  1345			return 0;
  1346	
  1347		pci_fixup_device(pci_fixup_resume_early, pci_dev);
> 1348		pci_pm_default_resume(pci_dev);
  1349	
  1350		if (pm && pm->runtime_resume)
  1351			rc = pm->runtime_resume(dev);
  1352	
  1353		pci_dev->runtime_d3cold = false;
  1354	
  1355		return rc;
  1356	}
  1357	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[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