[pci:aer 1/1] drivers/pci/hotplug/shpchp.h:51:25: 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/pci/pci.git aer
head:   c928d117f57c9ca1801c0e37019a357f86eb96f1
commit: c928d117f57c9ca1801c0e37019a357f86eb96f1 [1/1] PCI: Descope pci_printk() to aer_printk()
config: i386-buildonly-randconfig-004-20250214 (https://download.01.org/0day-ci/archive/20250214/202502141005.inOeb0pP-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250214/202502141005.inOeb0pP-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502141005.inOeb0pP-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from drivers/pci/hotplug/shpchp_ctrl.c:22:
   drivers/pci/hotplug/shpchp.h: In function 'amd_pogo_errata_restore_misc_reg':
>> drivers/pci/hotplug/shpchp.h:51:25: error: implicit declaration of function 'pci_printk'; did you mean 'pci_intx'? [-Werror=implicit-function-declaration]
      51 |                         pci_printk(KERN_DEBUG, ctrl->pci_dev,           \
         |                         ^~~~~~~~~~
   drivers/pci/hotplug/shpchp.h:256:17: note: in expansion of macro 'ctrl_dbg'
     256 |                 ctrl_dbg(p_slot->ctrl,
         |                 ^~~~~~~~
   cc1: some warnings being treated as errors


vim +51 drivers/pci/hotplug/shpchp.h

^1da177e4c3f415 Linus Torvalds   2005-04-16  35  
8352e04eb427db0 Kenji Kaneshige  2006-12-16  36  #define dbg(format, arg...)						\
8352e04eb427db0 Kenji Kaneshige  2006-12-16  37  do {									\
8352e04eb427db0 Kenji Kaneshige  2006-12-16  38  	if (shpchp_debug)						\
1c35b8e538cb625 Frank Seidel     2009-02-06  39  		printk(KERN_DEBUG "%s: " format, MY_NAME, ## arg);	\
8352e04eb427db0 Kenji Kaneshige  2006-12-16  40  } while (0)
8352e04eb427db0 Kenji Kaneshige  2006-12-16  41  #define err(format, arg...)						\
8352e04eb427db0 Kenji Kaneshige  2006-12-16  42  	printk(KERN_ERR "%s: " format, MY_NAME, ## arg)
8352e04eb427db0 Kenji Kaneshige  2006-12-16  43  #define info(format, arg...)						\
8352e04eb427db0 Kenji Kaneshige  2006-12-16  44  	printk(KERN_INFO "%s: " format, MY_NAME, ## arg)
8352e04eb427db0 Kenji Kaneshige  2006-12-16  45  #define warn(format, arg...)						\
8352e04eb427db0 Kenji Kaneshige  2006-12-16  46  	printk(KERN_WARNING "%s: " format, MY_NAME, ## arg)
^1da177e4c3f415 Linus Torvalds   2005-04-16  47  
f98ca311f3a32e2 Taku Izumi       2008-10-23  48  #define ctrl_dbg(ctrl, format, arg...)					\
f98ca311f3a32e2 Taku Izumi       2008-10-23  49  	do {								\
f98ca311f3a32e2 Taku Izumi       2008-10-23  50  		if (shpchp_debug)					\
7506dc798993323 Frederick Lawler 2018-01-18 @51  			pci_printk(KERN_DEBUG, ctrl->pci_dev,		\
f98ca311f3a32e2 Taku Izumi       2008-10-23  52  					format, ## arg);		\
f98ca311f3a32e2 Taku Izumi       2008-10-23  53  	} while (0)
f98ca311f3a32e2 Taku Izumi       2008-10-23  54  #define ctrl_err(ctrl, format, arg...)					\
7506dc798993323 Frederick Lawler 2018-01-18  55  	pci_err(ctrl->pci_dev, format, ## arg)
f98ca311f3a32e2 Taku Izumi       2008-10-23  56  #define ctrl_info(ctrl, format, arg...)					\
7506dc798993323 Frederick Lawler 2018-01-18  57  	pci_info(ctrl->pci_dev, format, ## arg)
f98ca311f3a32e2 Taku Izumi       2008-10-23  58  #define ctrl_warn(ctrl, format, arg...)					\
7506dc798993323 Frederick Lawler 2018-01-18  59  	pci_warn(ctrl->pci_dev, format, ## arg)
f98ca311f3a32e2 Taku Izumi       2008-10-23  60  
f98ca311f3a32e2 Taku Izumi       2008-10-23  61  

:::::: The code at line 51 was first introduced by commit
:::::: 7506dc7989933235e6fc23f3d0516bdbf0f7d1a8 PCI: Add wrappers for dev_printk()

:::::: TO: Frederick Lawler <fred@xxxxxxxxxxxx>
:::::: CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>

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




[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