Skip to content

Commit 003d3b2

Browse files
Kelsey Skunbergbjorn-helgaas
authored andcommitted
PCI: Make pci_hotplug_io_size, mem_size, and bus_size private
These symbols: extern unsigned long pci_hotplug_io_size; extern unsigned long pci_hotplug_mem_size; extern unsigned long pci_hotplug_bus_size; 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 440589d commit 003d3b2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/pci/pci.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ extern const struct attribute_group *pcibus_groups[];
208208
extern const struct device_type pci_dev_type;
209209
extern const struct attribute_group *pci_bus_groups[];
210210

211+
extern unsigned long pci_hotplug_io_size;
212+
extern unsigned long pci_hotplug_mem_size;
213+
extern unsigned long pci_hotplug_bus_size;
211214

212215
/**
213216
* pci_match_one_device - Tell if a PCI device structure has a matching

include/linux/pci.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,10 +2010,6 @@ extern unsigned long pci_cardbus_mem_size;
20102010
extern u8 pci_dfl_cache_line_size;
20112011
extern u8 pci_cache_line_size;
20122012

2013-
extern unsigned long pci_hotplug_io_size;
2014-
extern unsigned long pci_hotplug_mem_size;
2015-
extern unsigned long pci_hotplug_bus_size;
2016-
20172013
/* Architecture-specific versions may override these (weak) */
20182014
void pcibios_disable_device(struct pci_dev *dev);
20192015
void pcibios_set_master(struct pci_dev *dev);

0 commit comments

Comments
 (0)