From: kernel test robot <lkp@intel.com>
To: Keith Busch <kbusch@meta.com>,
linux-pci@vger.kernel.org, bhelgaas@google.com
Cc: oe-kbuild-all@lists.linux.dev, Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH] pci: make reset_subordinate hotplug safe
Date: Fri, 16 Jan 2026 01:38:17 +0800 [thread overview]
Message-ID: <202601160154.HvY4PSd3-lkp@intel.com> (raw)
In-Reply-To: <20260114185821.704089-1-kbusch@meta.com>
Hi Keith,
kernel test robot noticed the following build warnings:
[auto build test WARNING on pci/next]
[also build test WARNING on pci/for-linus linus/master v6.19-rc5 next-20260115]
[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/Keith-Busch/pci-make-reset_subordinate-hotplug-safe/20260115-030004
base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link: https://lore.kernel.org/r/20260114185821.704089-1-kbusch%40meta.com
patch subject: [PATCH] pci: make reset_subordinate hotplug safe
config: loongarch-randconfig-r112-20260115 (https://download.01.org/0day-ci/archive/20260116/202601160154.HvY4PSd3-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260116/202601160154.HvY4PSd3-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/202601160154.HvY4PSd3-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/pci/pci.c:1155:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted pci_power_t [usertype] current_state @@ got int @@
drivers/pci/pci.c:1155:36: sparse: expected restricted pci_power_t [usertype] current_state
drivers/pci/pci.c:1155:36: sparse: got int
drivers/pci/pci.c:1334:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted pci_power_t [assigned] [usertype] state @@ got int @@
drivers/pci/pci.c:1334:15: sparse: expected restricted pci_power_t [assigned] [usertype] state
drivers/pci/pci.c:1334:15: sparse: got int
drivers/pci/pci.c:1336:50: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1336:69: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1389:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted pci_power_t [usertype] current_state @@ got int @@
drivers/pci/pci.c:1389:28: sparse: expected restricted pci_power_t [usertype] current_state
drivers/pci/pci.c:1389:28: sparse: got int
drivers/pci/pci.c:1479:16: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1479:35: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1479:52: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1479:70: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1504:15: sparse: sparse: invalid assignment: |=
drivers/pci/pci.c:1504:15: sparse: left side has type unsigned short
drivers/pci/pci.c:1504:15: sparse: right side has type restricted pci_power_t
drivers/pci/pci.c:1516:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted pci_power_t [usertype] current_state @@ got int @@
drivers/pci/pci.c:1516:28: sparse: expected restricted pci_power_t [usertype] current_state
drivers/pci/pci.c:1516:28: sparse: got int
drivers/pci/pci.c:1533:13: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1533:21: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1535:18: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1535:26: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1558:13: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1558:22: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:1863:38: sparse: sparse: array of flexible structures
drivers/pci/pci.c:2341:44: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:2660:60: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:2661:30: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:2832:20: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:2832:38: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:2855:49: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:2855:67: sparse: sparse: restricted pci_power_t degrades to integer
drivers/pci/pci.c:4454:13: sparse: sparse: invalid assignment: |=
drivers/pci/pci.c:4454:13: sparse: left side has type unsigned short
drivers/pci/pci.c:4454:13: sparse: right side has type restricted pci_power_t
drivers/pci/pci.c:4459:13: sparse: sparse: invalid assignment: |=
drivers/pci/pci.c:4459:13: sparse: left side has type unsigned short
drivers/pci/pci.c:4459:13: sparse: right side has type restricted pci_power_t
>> drivers/pci/pci.c:5585:5: sparse: sparse: symbol '__pci_reset_bus' was not declared. Should it be static?
drivers/pci/pci.c:1110:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted pci_power_t [usertype] @@
drivers/pci/pci.c:1110:24: sparse: expected int
drivers/pci/pci.c:1110:24: sparse: got restricted pci_power_t [usertype]
drivers/pci/pci.c:1110:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted pci_power_t [usertype] @@
drivers/pci/pci.c:1110:24: sparse: expected int
drivers/pci/pci.c:1110:24: sparse: got restricted pci_power_t [usertype]
vim +/__pci_reset_bus +5585 drivers/pci/pci.c
9a3d2b9beefd5b Alex Williamson 2013-08-14 5578
090a3c5322e900 Alex Williamson 2013-08-08 5579 /**
c6a44ba950d147 Sinan Kaya 2018-07-19 5580 * __pci_reset_bus - Try to reset a PCI bus
090a3c5322e900 Alex Williamson 2013-08-08 5581 * @bus: top level PCI bus to reset
090a3c5322e900 Alex Williamson 2013-08-08 5582 *
61cf16d8bd38c3 Alex Williamson 2013-12-16 5583 * Same as above except return -EAGAIN if the bus cannot be locked
090a3c5322e900 Alex Williamson 2013-08-08 5584 */
2fa046449a82a7 Keith Busch 2024-10-25 @5585 int __pci_reset_bus(struct pci_bus *bus)
090a3c5322e900 Alex Williamson 2013-08-08 5586 {
090a3c5322e900 Alex Williamson 2013-08-08 5587 int rc;
090a3c5322e900 Alex Williamson 2013-08-08 5588
9bdc81ce440ec6 Amey Narkhede 2021-08-17 5589 rc = pci_bus_reset(bus, PCI_RESET_PROBE);
090a3c5322e900 Alex Williamson 2013-08-08 5590 if (rc)
090a3c5322e900 Alex Williamson 2013-08-08 5591 return rc;
090a3c5322e900 Alex Williamson 2013-08-08 5592
61cf16d8bd38c3 Alex Williamson 2013-12-16 5593 if (pci_bus_trylock(bus)) {
ddefc033eecf23 Alex Williamson 2019-02-18 5594 pci_bus_save_and_disable_locked(bus);
61cf16d8bd38c3 Alex Williamson 2013-12-16 5595 might_sleep();
381634cad15b71 Sinan Kaya 2018-07-19 5596 rc = pci_bridge_secondary_bus_reset(bus->self);
ddefc033eecf23 Alex Williamson 2019-02-18 5597 pci_bus_restore_locked(bus);
61cf16d8bd38c3 Alex Williamson 2013-12-16 5598 pci_bus_unlock(bus);
61cf16d8bd38c3 Alex Williamson 2013-12-16 5599 } else
61cf16d8bd38c3 Alex Williamson 2013-12-16 5600 rc = -EAGAIN;
090a3c5322e900 Alex Williamson 2013-08-08 5601
090a3c5322e900 Alex Williamson 2013-08-08 5602 return rc;
090a3c5322e900 Alex Williamson 2013-08-08 5603 }
8dd7f8036c1232 Sheng Yang 2008-10-21 5604
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-01-15 17:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 18:58 [PATCH] pci: make reset_subordinate hotplug safe Keith Busch
2026-01-14 19:18 ` Bjorn Helgaas
2026-01-14 19:24 ` Keith Busch
2026-01-15 10:45 ` kernel test robot
2026-01-15 11:29 ` kernel test robot
2026-01-15 17:38 ` kernel test robot [this message]
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=202601160154.HvY4PSd3-lkp@intel.com \
--to=lkp@intel.com \
--cc=bhelgaas@google.com \
--cc=kbusch@kernel.org \
--cc=kbusch@meta.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