[pci:pci/pm 4/7] drivers/pci/pci-driver.c:1348:2: error: implicit declaration of function '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:   d17ff4ab7daac4bf26d59a4de3ca22f42492425b
commit: 6d133f6f1934493a0dc0504fa115e5140d010522 [4/7] PCI/PM: Run resume fixups before disabling wakeup events
config: x86_64-randconfig-s0-201941 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
        git checkout 6d133f6f1934493a0dc0504fa115e5140d010522
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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' [-Werror=implicit-function-declaration]
     pci_pm_default_resume(pci_dev);
     ^
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 include/linux/list.h:__list_del
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_read
   Cyclomatic Complexity 2 arch/x86/include/asm/atomic.h:arch_atomic_try_cmpxchg
   Cyclomatic Complexity 1 include/linux/cpumask.h:cpumask_next_and
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock
   Cyclomatic Complexity 1 include/linux/nodemask.h:node_state
   Cyclomatic Complexity 1 include/linux/workqueue.h:work_on_cpu
   Cyclomatic Complexity 1 include/linux/kobject.h:kobject_name
   Cyclomatic Complexity 2 include/linux/device.h:dev_name
   Cyclomatic Complexity 1 include/linux/device.h:dev_to_node
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc_type
   Cyclomatic Complexity 28 include/linux/slab.h:kmalloc_index
   Cyclomatic Complexity 1 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 4 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/pci.h:pci_name
   Cyclomatic Complexity 1 include/linux/pci.h:pci_num_vf
   Cyclomatic Complexity 1 include/linux/dma-debug.h:dma_debug_add_bus
   Cyclomatic Complexity 1 include/linux/cpu.h:cpu_hotplug_disable
   Cyclomatic Complexity 1 include/linux/cpu.h:cpu_hotplug_enable
   Cyclomatic Complexity 10 drivers/pci/pci.h:pci_match_one_device
   Cyclomatic Complexity 1 drivers/pci/pci.h:pci_iov_remove
   Cyclomatic Complexity 6 drivers/pci/pci-driver.c:pci_match_id
   Cyclomatic Complexity 1 drivers/pci/pci-driver.c:pci_physfn_is_probed
   Cyclomatic Complexity 1 drivers/pci/pci-driver.c:pci_device_can_probe
   Cyclomatic Complexity 5 drivers/pci/pci-driver.c:pci_pm_runtime_idle
   Cyclomatic Complexity 4 drivers/pci/pci-driver.c:pci_dev_driver
   Cyclomatic Complexity 1 drivers/pci/pci-driver.c:pci_bus_num_vf
   Cyclomatic Complexity 69 include/asm-generic/getorder.h:get_order
   Cyclomatic Complexity 2 include/linux/list.h:__list_add
   Cyclomatic Complexity 1 include/linux/list.h:list_add_tail
   Cyclomatic Complexity 2 drivers/pci/pci-driver.c:pci_add_dynid
   Cyclomatic Complexity 1 drivers/pci/pci-driver.c:__pci_register_driver
   Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry
   Cyclomatic Complexity 1 include/linux/list.h:list_del
   Cyclomatic Complexity 2 drivers/pci/pci-driver.c:pci_free_dynids
   Cyclomatic Complexity 1 drivers/pci/pci-driver.c:pci_unregister_driver
   Cyclomatic Complexity 2 drivers/pci/pci-driver.c:pci_dev_get
   Cyclomatic Complexity 2 drivers/pci/pci-driver.c:pci_dev_put
   Cyclomatic Complexity 3 drivers/pci/pci-driver.c:pci_restore_standard_config
   Cyclomatic Complexity 5 drivers/pci/pci-driver.c:pci_pm_runtime_resume
   Cyclomatic Complexity 16 drivers/pci/pci-driver.c:pci_pm_runtime_suspend
   Cyclomatic Complexity 1 include/linux/acpi.h:has_acpi_companion
   Cyclomatic Complexity 5 drivers/pci/pci-driver.c:pci_dma_configure
   Cyclomatic Complexity 1 include/linux/pm_runtime.h:pm_runtime_resume
   Cyclomatic Complexity 3 drivers/pci/pci-driver.c:pci_device_shutdown
   Cyclomatic Complexity 1 include/linux/pm_runtime.h:pm_runtime_get_sync
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_read
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_try_cmpxchg
   Cyclomatic Complexity 3 include/linux/atomic-fallback.h:atomic_fetch_add_unless
   Cyclomatic Complexity 1 include/linux/atomic-fallback.h:atomic_add_unless
   Cyclomatic Complexity 1 include/linux/pm_runtime.h:pm_runtime_put_noidle
   Cyclomatic Complexity 1 include/linux/pm_runtime.h:pm_runtime_put_sync
   Cyclomatic Complexity 8 drivers/pci/pci-driver.c:pci_match_device
   Cyclomatic Complexity 3 drivers/pci/pci-driver.c:pci_bus_match
   Cyclomatic Complexity 3 drivers/pci/pci-driver.c:local_pci_probe
   Cyclomatic Complexity 5 drivers/pci/pci-driver.c:pci_call_probe
   Cyclomatic Complexity 4 drivers/pci/pci-driver.c:__pci_device_probe
   Cyclomatic Complexity 7 drivers/pci/pci-driver.c:pci_uevent
   Cyclomatic Complexity 10 drivers/pci/pci-driver.c:remove_id_store
   Cyclomatic Complexity 13 drivers/pci/pci-driver.c:new_id_store
   Cyclomatic Complexity 2 drivers/pci/pci-driver.c:pci_driver_init
   Cyclomatic Complexity 1 drivers/pci/pci-driver.c:pcibios_alloc_irq
   Cyclomatic Complexity 1 drivers/pci/pci-driver.c:pcibios_free_irq
   Cyclomatic Complexity 4 drivers/pci/pci-driver.c:pci_device_remove
   Cyclomatic Complexity 4 drivers/pci/pci-driver.c:pci_device_probe
   Cyclomatic Complexity 1 drivers/pci/pci-driver.c:_GLOBAL__sub_I_65535_0_pci_add_dynid
   cc1: some warnings being treated as errors

vim +/pci_pm_default_resume +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