[pci:hotplug 1/2] drivers/pci/hotplug/shpchp_core.c:330:9: error: implicit declaration of function 'dbg'

[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 hotplug
head:   42e8331215cfd096f86b8605822a0fe8b0a2e2bb
commit: bf8863c9be49b92db646b78fecd445e59a4c1e9f [1/2] PCI: shpchp: Remove unused logging wrappers
config: arm-randconfig-001-20250219 (https://download.01.org/0day-ci/archive/20250219/202502190754.ogAfcyNP-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250219/202502190754.ogAfcyNP-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/202502190754.ogAfcyNP-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/pci/hotplug/shpchp_core.c: In function 'shpcd_init':
>> drivers/pci/hotplug/shpchp_core.c:330:9: error: implicit declaration of function 'dbg' [-Wimplicit-function-declaration]
     330 |         dbg("%s: pci_register_driver = %d\n", __func__, retval);
         |         ^~~
>> drivers/pci/hotplug/shpchp_core.c:331:9: error: implicit declaration of function 'info' [-Wimplicit-function-declaration]
     331 |         info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
         |         ^~~~
--
   drivers/pci/hotplug/shpchp_hpc.c: In function 'shpc_get_cur_bus_speed':
>> drivers/pci/hotplug/shpchp_hpc.c:678:9: error: implicit declaration of function 'dbg' [-Wimplicit-function-declaration]
     678 |         dbg("Current bus speed = %d\n", bus_speed);
         |         ^~~


vim +/dbg +330 drivers/pci/hotplug/shpchp_core.c

^1da177e4c3f415 Linus Torvalds  2005-04-16  324  
^1da177e4c3f415 Linus Torvalds  2005-04-16  325  static int __init shpcd_init(void)
^1da177e4c3f415 Linus Torvalds  2005-04-16  326  {
f652e7d2916fe2f Bjorn Helgaas   2013-01-11  327  	int retval;
e24dcbef93dbbf5 Tejun Heo       2010-10-18  328  
^1da177e4c3f415 Linus Torvalds  2005-04-16  329  	retval = pci_register_driver(&shpc_driver);
66bef8c059015ba Harvey Harrison 2008-03-03 @330  	dbg("%s: pci_register_driver = %d\n", __func__, retval);
^1da177e4c3f415 Linus Torvalds  2005-04-16 @331  	info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
f652e7d2916fe2f Bjorn Helgaas   2013-01-11  332  
^1da177e4c3f415 Linus Torvalds  2005-04-16  333  	return retval;
^1da177e4c3f415 Linus Torvalds  2005-04-16  334  }
^1da177e4c3f415 Linus Torvalds  2005-04-16  335  

:::::: The code at line 330 was first introduced by commit
:::::: 66bef8c059015ba2b36bb5759080336feb01e680 PCI: replace remaining __FUNCTION__ occurrences

:::::: TO: Harvey Harrison <harvey.harrison@xxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxx>

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