From: kernel test robot <lkp@intel.com>
To: Mario Limonciello <superm1@kernel.org>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Alex Deucher <alexander.deucher@amd.com>,
Bjorn Helgaas <helgaas@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
amd-gfx@lists.freedesktop.org,
"(open list:HIBERNATION (aka Software Suspend,
aka swsusp))" <linux-pm@vger.kernel.org>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Danilo Krummrich" <dakr@kernel.org>,
"James E . J . Bottomley" <James.Bottomley@hansenpartnership.com>,
"Martin K . Petersen" <martin.petersen@oracle.com>,
dri-devel@lists.freedesktop.org, linux-scsi@vger.kernel.org,
linux-usb@vger.kernel.org,
"Mario Limonciello" <mario.limonciello@amd.com>,
"AceLan Kao" <acelan.kao@canonical.com>,
"Kai-Heng Feng" <kaihengf@nvidia.com>,
"Mark Pearson" <mpearson-lenovo@squebb.ca>,
"Denis Benato" <benato.denis96@gmail.com>,
"Merthan Karakaş" <m3rthn.k@gmail.com>
Subject: Re: [PATCH v3 2/5] PCI: Put PCIe ports with downstream devices into D3 at hibernate
Date: Mon, 9 Jun 2025 16:29:45 +0800 [thread overview]
Message-ID: <202506091639.HaxwbWtd-lkp@intel.com> (raw)
In-Reply-To: <20250609024619.407257-3-superm1@kernel.org>
Hi Mario,
kernel test robot noticed the following build errors:
[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on rafael-pm/bleeding-edge mkp-scsi/for-next jejb-scsi/for-next linus/master v6.16-rc1 next-20250606]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Mario-Limonciello/PM-Use-hibernate-flows-for-system-power-off/20250609-105658
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link: https://lore.kernel.org/r/20250609024619.407257-3-superm1%40kernel.org
patch subject: [PATCH v3 2/5] PCI: Put PCIe ports with downstream devices into D3 at hibernate
config: i386-buildonly-randconfig-003-20250609 (https://download.01.org/0day-ci/archive/20250609/202506091639.HaxwbWtd-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250609/202506091639.HaxwbWtd-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/202506091639.HaxwbWtd-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/pci/pci-driver.c:1221:7: error: call to undeclared function 'pci_pm_set_prepare_bus_pm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1221 | if (!pci_pm_set_prepare_bus_pm(pci_dev))
| ^
1 error generated.
vim +/pci_pm_set_prepare_bus_pm +1221 drivers/pci/pci-driver.c
1195
1196 static int pci_pm_poweroff_noirq(struct device *dev)
1197 {
1198 struct pci_dev *pci_dev = to_pci_dev(dev);
1199 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1200
1201 if (dev_pm_skip_suspend(dev))
1202 return 0;
1203
1204 if (pci_has_legacy_pm_support(pci_dev))
1205 return pci_legacy_suspend_late(dev);
1206
1207 if (!pm) {
1208 pci_fixup_device(pci_fixup_suspend_late, pci_dev);
1209 return 0;
1210 }
1211
1212 if (pm->poweroff_noirq) {
1213 int error;
1214
1215 error = pm->poweroff_noirq(dev);
1216 suspend_report_result(dev, pm->poweroff_noirq, error);
1217 if (error)
1218 return error;
1219 }
1220
> 1221 if (!pci_pm_set_prepare_bus_pm(pci_dev))
1222 goto Fixup;
1223
1224 /*
1225 * The reason for doing this here is the same as for the analogous code
1226 * in pci_pm_suspend_noirq().
1227 */
1228 if (pci_dev->class == PCI_CLASS_SERIAL_USB_EHCI)
1229 pci_write_config_word(pci_dev, PCI_COMMAND, 0);
1230
1231 Fixup:
1232 pci_fixup_device(pci_fixup_suspend_late, pci_dev);
1233
1234 return 0;
1235 }
1236
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-06-09 8:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-09 2:46 [PATCH v3 0/5] Improvements to S5 power consumption Mario Limonciello
2025-06-09 2:46 ` [PATCH v3 1/5] PM: Use hibernate flows for system power off Mario Limonciello
2025-06-09 2:46 ` [PATCH v3 2/5] PCI: Put PCIe ports with downstream devices into D3 at hibernate Mario Limonciello
2025-06-09 8:29 ` kernel test robot [this message]
2025-06-09 2:46 ` [PATCH v3 3/5] drm/amd: Avoid evicting resources at S5 Mario Limonciello
2025-06-09 2:46 ` [PATCH v3 4/5] scsi: Add PM_EVENT_POWEROFF into suspend callbacks Mario Limonciello
2025-06-09 2:46 ` [PATCH v3 5/5] usb: sl811-hcd: " Mario Limonciello
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=202506091639.HaxwbWtd-lkp@intel.com \
--to=lkp@intel.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=acelan.kao@canonical.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=benato.denis96@gmail.com \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=helgaas@kernel.org \
--cc=kaihengf@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=m3rthn.k@gmail.com \
--cc=mario.limonciello@amd.com \
--cc=martin.petersen@oracle.com \
--cc=mpearson-lenovo@squebb.ca \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rafael@kernel.org \
--cc=superm1@kernel.org \
/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.