Skip to content

Commit 38a18df

Browse files
keithbuschbjorn-helgaas
authored andcommitted
PCI: Unexport pci_walk_bus_locked()
There's only one user of pci_walk_bus_locked(), and it's internal to the PCI core. Unexport it and make it private to drivers/pci/. Link: https://lore.kernel.org/r/20241022224851.340648-6-kbusch@meta.com Signed-off-by: Keith Busch <kbusch@kernel.org> [bhelgaas: move decl to drivers/pci/pci.h] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Davidlohr Bueso <dave@stgolabs.net> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent ee061da commit 38a18df

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/pci/bus.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ void pci_walk_bus_locked(struct pci_bus *top, int (*cb)(struct pci_dev *, void *
435435

436436
__pci_walk_bus(top, cb, userdata);
437437
}
438-
EXPORT_SYMBOL_GPL(pci_walk_bus_locked);
439438

440439
struct pci_bus *pci_bus_get(struct pci_bus *bus)
441440
{

drivers/pci/pci.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ void __pci_bus_assign_resources(const struct pci_bus *bus,
323323
struct list_head *realloc_head,
324324
struct list_head *fail_head);
325325
bool pci_bus_clip_resource(struct pci_dev *dev, int idx);
326+
void pci_walk_bus_locked(struct pci_bus *top,
327+
int (*cb)(struct pci_dev *, void *),
328+
void *userdata);
326329

327330
const char *pci_resource_name(struct pci_dev *dev, unsigned int i);
328331

include/linux/pci.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,8 +1623,6 @@ int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
16231623

16241624
void pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev *, void *),
16251625
void *userdata);
1626-
void pci_walk_bus_locked(struct pci_bus *top, int (*cb)(struct pci_dev *, void *),
1627-
void *userdata);
16281626
int pci_cfg_space_size(struct pci_dev *dev);
16291627
unsigned char pci_bus_max_busnr(struct pci_bus *bus);
16301628
void pci_setup_bridge(struct pci_bus *bus);

0 commit comments

Comments
 (0)