Skip to content

PCI: Finally make pci_root_buses private

Gerd Bayer linux-alpha linux-arm-kernel linux-pci linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20260508-priv_root_buses-0263ef2679ad

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5alpha/pci: Use official API to iterate over PCI busesarch/alpha/kernel/pci.c+2 -20 replies
2/5arm/pci: Use official API to iterate over PCI busesarch/arm/kernel/bios32.c+2 -21 reply
3/5powerpc/pci: Use official API to iterate over PCI busesarch/powerpc/kernel/pci-common.c arch/powerpc/kernel/pci_64.c+6 -50 replies
4/5x86/pci: Use official API to iterate over PCI busesarch/x86/pci/i386.c+8 -62 replies
5/5PCI: Make pci_root_buses private to PCI coredrivers/pci/pci.h drivers/pci/probe.c include/linux/pci.h+3 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] PCI: Finally make pci_root_buses private

Hi all!

The ominous warning about pci_root_buses in drivers/pci/probe.c caught my attention. Looking closer, I found that there are uses in four arch-specific files left before we can stop exposing that symbol outside of drivers/pci.

Finish off the job that Yinghai Lu started in 2013 - see
https://msgid.link/[email protected]/

The entire series has been compile-tested only - with defconfigs on alpha, arm, powerpc, and x86.

---
Gerd Bayer (5):
alpha/pci: Use official API to iterate over PCI buses arm/pci: Use official API to iterate over PCI buses powerpc/pci: Use official API to iterate over PCI buses x86/pci: Use official API to iterate over PCI buses
PCI: Make pci_root_buses private to PCI core

 arch/alpha/kernel/pci.c          |  4 ++--
 arch/arm/kernel/bios32.c         |  4 ++--
 arch/powerpc/kernel/pci-common.c |  7 ++++---
 arch/powerpc/kernel/pci_64.c     |  4 ++--
 arch/x86/pci/i386.c              | 14 ++++++++------
 drivers/pci/pci.h                |  3 +++
 drivers/pci/probe.c              |  2 --
 include/linux/pci.h              |  4 ----
 8 files changed, 21 insertions(+), 21 deletions(-)

---
base-commit: 5d6919055dec134de3c40167a490f33c74c12581
change-id: 20260508-priv_root_buses-0263ef2679ad

Best regards,

Signature · 1 line
Gerd Bayer <[email protected]>