[pci:pci/misc 10/10] drivers/pci/pcie/aer/aerdrv_core.c:229:3: error: implicit declaration of function 'pci_printk'; did you mean 'pci_intx'?

[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/misc
head:   ba8d362b6d084433dd311c13de5fd2dba1c90b93
commit: ba8d362b6d084433dd311c13de5fd2dba1c90b93 [10/10] PCI: Add wrappers for dev_printk()
config: i386-randconfig-x015-201802 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout ba8d362b6d084433dd311c13de5fd2dba1c90b93
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/pci/pcie/aer/aerdrv_core.c: In function 'find_source_device':
>> drivers/pci/pcie/aer/aerdrv_core.c:229:3: error: implicit declaration of function 'pci_printk'; did you mean 'pci_intx'? [-Werror=implicit-function-declaration]
      pci_printk(KERN_DEBUG, parent, "can't find device of ID%04x\n",
      ^~~~~~~~~~
      pci_intx
   cc1: some warnings being treated as errors
--
   drivers/pci/pcie/aer/aerdrv.c: In function 'aer_root_reset':
>> drivers/pci/pcie/aer/aerdrv.c:329:2: error: implicit declaration of function 'pci_printk'; did you mean 'pci_intx'? [-Werror=implicit-function-declaration]
     pci_printk(KERN_DEBUG, dev, "Root Port link has been reset\n");
     ^~~~~~~~~~
     pci_intx
   cc1: some warnings being treated as errors
--
   drivers//pci/bus.c: In function 'pci_bus_clip_resource':
>> drivers//pci/bus.c:292:3: error: implicit declaration of function 'pci_printk'; did you mean 'pci_intx'? [-Werror=implicit-function-declaration]
      pci_printk(KERN_DEBUG, dev, "%pR clipped to %pR\n",
      ^~~~~~~~~~
      pci_intx
   cc1: some warnings being treated as errors
--
   drivers//pci/probe.c: In function '__pci_read_base':
>> drivers//pci/probe.c:315:3: error: implicit declaration of function 'pci_printk'; did you mean 'pci_intx'? [-Werror=implicit-function-declaration]
      pci_printk(KERN_DEBUG, dev, "reg 0x%x: %pR\n", pos, res);
      ^~~~~~~~~~
      pci_intx
   cc1: some warnings being treated as errors
--
   drivers//pci/pci.c: In function 'pci_pm_init':
>> drivers//pci/pci.c:2447:4: error: implicit declaration of function 'pci_printk'; did you mean 'pci_intx'? [-Werror=implicit-function-declaration]
       pci_printk(KERN_DEBUG, dev, "supports%s%s\n",
       ^~~~~~~~~~
       pci_intx
   cc1: some warnings being treated as errors
--
   drivers//pci/setup-bus.c: In function 'reassign_resources_sorted':
>> drivers//pci/setup-bus.c:261:5: error: implicit declaration of function 'pci_printk'; did you mean 'pci_intx'? [-Werror=implicit-function-declaration]
        pci_printk(KERN_DEBUG, add_res->dev,
        ^~~~~~~~~~
        pci_intx
   cc1: some warnings being treated as errors

vim +229 drivers/pci/pcie/aer/aerdrv_core.c

   199	
   200	/**
   201	 * find_source_device - search through device hierarchy for source device
   202	 * @parent: pointer to Root Port pci_dev data structure
   203	 * @e_info: including detailed error information such like id
   204	 *
   205	 * Return true if found.
   206	 *
   207	 * Invoked by DPC when error is detected at the Root Port.
   208	 * Caller of this function must set id, severity, and multi_error_valid of
   209	 * struct aer_err_info pointed by @e_info properly.  This function must fill
   210	 * e_info->error_dev_num and e_info->dev[], based on the given information.
   211	 */
   212	static bool find_source_device(struct pci_dev *parent,
   213			struct aer_err_info *e_info)
   214	{
   215		struct pci_dev *dev = parent;
   216		int result;
   217	
   218		/* Must reset in this function */
   219		e_info->error_dev_num = 0;
   220	
   221		/* Is Root Port an agent that sends error message? */
   222		result = find_device_iter(dev, e_info);
   223		if (result)
   224			return true;
   225	
   226		pci_walk_bus(parent->subordinate, find_device_iter, e_info);
   227	
   228		if (!e_info->error_dev_num) {
 > 229			pci_printk(KERN_DEBUG, parent, "can't find device of ID%04x\n",
   230				   e_info->id);
   231			return false;
   232		}
   233		return true;
   234	}
   235	

---
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