From: kernel test robot <lkp@intel.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-pci@vger.kernel.org,
Bjorn Helgaas <helgaas@kernel.org>
Subject: [pci:aer 1/1] drivers/pci/hotplug/shpchp.h:51:25: error: implicit declaration of function 'pci_printk'; did you mean 'pci_intx'?
Date: Fri, 14 Feb 2025 10:44:10 +0800 [thread overview]
Message-ID: <202502141005.inOeb0pP-lkp@intel.com> (raw)
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@intel.com/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@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/202502141005.inOeb0pP-lkp@intel.com/
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@fredlawl.com>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-14 2:45 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=202502141005.inOeb0pP-lkp@intel.com \
--to=lkp@intel.com \
--cc=helgaas@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-pci@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox