From: kernel test robot <lkp@intel.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-pci@vger.kernel.org, Bjorn Helgaas <helgaas@kernel.org>
Subject: [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
Date: Wed, 19 Feb 2025 07:26:05 +0800 [thread overview]
Message-ID: <202502190711.BtNyZppZ-lkp@intel.com> (raw)
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
reply other threads:[~2025-02-18 23:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202502190711.BtNyZppZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=helgaas@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-pci@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.