Skip to content

Commit ecd29c1

Browse files
Kelsey Skunbergbjorn-helgaas
authored andcommitted
PCI: Make pci_bus_get(), pci_bus_put() private
These interfaces: struct pci_bus *pci_bus_get(struct pci_bus *bus); void pci_bus_put(struct pci_bus *bus); are only used in drivers/pci/ and do not need to be seen by the rest of the kernel. Move them to drivers/pci/pci.h so they're private to the PCI subsystem. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kelsey Skunberg <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 003d3b2 commit ecd29c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/pci/pci.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ bool pci_bus_clip_resource(struct pci_dev *dev, int idx);
274274

275275
void pci_reassigndev_resource_alignment(struct pci_dev *dev);
276276
void pci_disable_bridge_window(struct pci_dev *dev);
277+
struct pci_bus *pci_bus_get(struct pci_bus *bus);
278+
void pci_bus_put(struct pci_bus *bus);
277279

278280
/* PCIe link information */
279281
#define PCIE_SPEED2STR(speed) \

include/linux/pci.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,8 +1282,6 @@ int pci_request_selected_regions_exclusive(struct pci_dev *, int, const char *);
12821282
void pci_release_selected_regions(struct pci_dev *, int);
12831283

12841284
/* drivers/pci/bus.c */
1285-
struct pci_bus *pci_bus_get(struct pci_bus *bus);
1286-
void pci_bus_put(struct pci_bus *bus);
12871285
void pci_add_resource(struct list_head *resources, struct resource *res);
12881286
void pci_add_resource_offset(struct list_head *resources, struct resource *res,
12891287
resource_size_t offset);

0 commit comments

Comments
 (0)