oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [linux-stable-rc:queue/5.10 67/74] drivers/pci/pci-driver.c:1297:2: error: implicit declaration of function 'pci_restore_standard_config'
@ 2023-03-14  7:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-14  7:10 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: llvm, oe-kbuild-all, Sasha Levin, Bjorn Helgaas

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.10
head:   2e9a706c2ad072a55cca9dada43ca479f763b092
commit: 318310047942ab701d3777700b0bb1d134d018dc [67/74] PCI/PM: Define pci_restore_standard_config() only for CONFIG_PM_SLEEP
config: x86_64-randconfig-r014-20230313 (https://download.01.org/0day-ci/archive/20230314/202303141554.HvEmVkNC-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=318310047942ab701d3777700b0bb1d134d018dc
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc queue/5.10
        git checkout 318310047942ab701d3777700b0bb1d134d018dc
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303141554.HvEmVkNC-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/pci/pci-driver.c:1297:2: error: implicit declaration of function 'pci_restore_standard_config' [-Werror,-Wimplicit-function-declaration]
           pci_restore_standard_config(pci_dev);
           ^
   1 error generated.


vim +/pci_restore_standard_config +1297 drivers/pci/pci-driver.c

6cbf82148ff286 Rafael J. Wysocki 2010-02-17  1284  
6cbf82148ff286 Rafael J. Wysocki 2010-02-17  1285  static int pci_pm_runtime_resume(struct device *dev)
6cbf82148ff286 Rafael J. Wysocki 2010-02-17  1286  {
6cbf82148ff286 Rafael J. Wysocki 2010-02-17  1287  	struct pci_dev *pci_dev = to_pci_dev(dev);
6cbf82148ff286 Rafael J. Wysocki 2010-02-17  1288  	const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
ad9001f2f41198 Mika Westerberg   2019-11-12  1289  	pci_power_t prev_state = pci_dev->current_state;
6da2f2ccfd2deb Bjorn Helgaas     2019-10-14  1290  	int error = 0;
6cbf82148ff286 Rafael J. Wysocki 2010-02-17  1291  
967577b062417b Huang Ying        2012-11-20  1292  	/*
5775b843a619b3 Rafael J. Wysocki 2018-03-03  1293  	 * Restoring config space is necessary even if the device is not bound
5775b843a619b3 Rafael J. Wysocki 2018-03-03  1294  	 * to a driver because although we left it in D0, it may have gone to
5775b843a619b3 Rafael J. Wysocki 2018-03-03  1295  	 * D3cold when the bridge above it runtime suspended.
967577b062417b Huang Ying        2012-11-20  1296  	 */
5775b843a619b3 Rafael J. Wysocki 2018-03-03 @1297  	pci_restore_standard_config(pci_dev);
5775b843a619b3 Rafael J. Wysocki 2018-03-03  1298  
967577b062417b Huang Ying        2012-11-20  1299  	if (!pci_dev->driver)
967577b062417b Huang Ying        2012-11-20  1300  		return 0;
967577b062417b Huang Ying        2012-11-20  1301  
db288c9c5f9db4 Rafael J. Wysocki 2012-07-05  1302  	pci_fixup_device(pci_fixup_resume_early, pci_dev);
f7b32a86e455b0 Bjorn Helgaas     2019-10-12  1303  	pci_pm_default_resume(pci_dev);
6cbf82148ff286 Rafael J. Wysocki 2010-02-17  1304  
ad9001f2f41198 Mika Westerberg   2019-11-12  1305  	if (prev_state == PCI_D3cold)
ad9001f2f41198 Mika Westerberg   2019-11-12  1306  		pci_bridge_wait_for_secondary_bus(pci_dev);
ad9001f2f41198 Mika Westerberg   2019-11-12  1307  
c5eb1190074cfb Jarkko Nikula     2018-10-23  1308  	if (pm && pm->runtime_resume)
6da2f2ccfd2deb Bjorn Helgaas     2019-10-14  1309  		error = pm->runtime_resume(dev);
448bd857d48e69 Huang Ying        2012-06-23  1310  
448bd857d48e69 Huang Ying        2012-06-23  1311  	pci_dev->runtime_d3cold = false;
448bd857d48e69 Huang Ying        2012-06-23  1312  
6da2f2ccfd2deb Bjorn Helgaas     2019-10-14  1313  	return error;
6cbf82148ff286 Rafael J. Wysocki 2010-02-17  1314  }
6cbf82148ff286 Rafael J. Wysocki 2010-02-17  1315  

:::::: The code at line 1297 was first introduced by commit
:::::: 5775b843a619b3c93f946e2b55a208d9f0f48b59 PCI: Restore config space on runtime resume despite being unbound

:::::: TO: Rafael J. Wysocki <rjw@rjwysocki.net>
:::::: CC: Lukas Wunner <lukas@wunner.de>

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

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

only message in thread, other threads:[~2023-03-14  7:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14  7:10 [linux-stable-rc:queue/5.10 67/74] drivers/pci/pci-driver.c:1297:2: error: implicit declaration of function 'pci_restore_standard_config' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).