* [pci:hotplug 1/2] drivers/pci/hotplug/shpchp_core.c:330:2: error: call to undeclared function 'dbg'; ISO C99 and later do not support implicit function declarations
@ 2025-02-18 23:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-18 23:26 UTC (permalink / raw)
To: Ilpo Järvinen; +Cc: llvm, oe-kbuild-all, linux-pci, Bjorn Helgaas
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: i386-buildonly-randconfig-004-20250219 (https://download.01.org/0day-ci/archive/20250219/202502190711.BtNyZppZ-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250219/202502190711.BtNyZppZ-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502190711.BtNyZppZ-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/pci/hotplug/shpchp_core.c:330:2: error: call to undeclared function 'dbg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
330 | dbg("%s: pci_register_driver = %d\n", __func__, retval);
| ^
>> drivers/pci/hotplug/shpchp_core.c:331:2: error: call to undeclared function 'info'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
331 | info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
| ^
drivers/pci/hotplug/shpchp_core.c:338:2: error: call to undeclared function 'dbg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
338 | dbg("unload_shpchpd()\n");
| ^
drivers/pci/hotplug/shpchp_core.c:340:2: error: call to undeclared function 'info'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
340 | info(DRIVER_DESC " version: " DRIVER_VERSION " unloaded\n");
| ^
4 errors generated.
--
>> drivers/pci/hotplug/shpchp_hpc.c:678:2: error: call to undeclared function 'dbg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
678 | dbg("Current bus speed = %d\n", bus_speed);
| ^
1 error generated.
vim +/dbg +330 drivers/pci/hotplug/shpchp_core.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 324
^1da177e4c3f41 Linus Torvalds 2005-04-16 325 static int __init shpcd_init(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 326 {
f652e7d2916fe2 Bjorn Helgaas 2013-01-11 327 int retval;
e24dcbef93dbbf Tejun Heo 2010-10-18 328
^1da177e4c3f41 Linus Torvalds 2005-04-16 329 retval = pci_register_driver(&shpc_driver);
66bef8c059015b Harvey Harrison 2008-03-03 @330 dbg("%s: pci_register_driver = %d\n", __func__, retval);
^1da177e4c3f41 Linus Torvalds 2005-04-16 @331 info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
f652e7d2916fe2 Bjorn Helgaas 2013-01-11 332
^1da177e4c3f41 Linus Torvalds 2005-04-16 333 return retval;
^1da177e4c3f41 Linus Torvalds 2005-04-16 334 }
^1da177e4c3f41 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@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-18 23:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-18 23:26 [pci:hotplug 1/2] drivers/pci/hotplug/shpchp_core.c:330:2: error: call to undeclared function 'dbg'; ISO C99 and later do not support implicit function declarations kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.