diff options
-rw-r--r-- | drivers/pci/msi.c | 4 | ||||
-rw-r--r-- | drivers/pci/pci.c | 8 | ||||
-rw-r--r-- | drivers/pci/pcie/aer/aer_inject.c | 4 | ||||
-rw-r--r-- | drivers/pci/setup-bus.c | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 00cc78c7aa04..bbff7d5a9b35 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -484,12 +484,12 @@ static struct msi_attribute mode_attribute = | |||
484 | __ATTR(mode, S_IRUGO, show_msi_mode, NULL); | 484 | __ATTR(mode, S_IRUGO, show_msi_mode, NULL); |
485 | 485 | ||
486 | 486 | ||
487 | struct attribute *msi_irq_default_attrs[] = { | 487 | static struct attribute *msi_irq_default_attrs[] = { |
488 | &mode_attribute.attr, | 488 | &mode_attribute.attr, |
489 | NULL | 489 | NULL |
490 | }; | 490 | }; |
491 | 491 | ||
492 | void msi_kobj_release(struct kobject *kobj) | 492 | static void msi_kobj_release(struct kobject *kobj) |
493 | { | 493 | { |
494 | struct msi_desc *entry = to_msi_desc(kobj); | 494 | struct msi_desc *entry = to_msi_desc(kobj); |
495 | 495 | ||
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index b099e0025d2b..f0ef3997ed3b 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -2619,7 +2619,7 @@ void pci_release_selected_regions(struct pci_dev *pdev, int bars) | |||
2619 | pci_release_region(pdev, i); | 2619 | pci_release_region(pdev, i); |
2620 | } | 2620 | } |
2621 | 2621 | ||
2622 | int __pci_request_selected_regions(struct pci_dev *pdev, int bars, | 2622 | static int __pci_request_selected_regions(struct pci_dev *pdev, int bars, |
2623 | const char *res_name, int excl) | 2623 | const char *res_name, int excl) |
2624 | { | 2624 | { |
2625 | int i; | 2625 | int i; |
@@ -3699,7 +3699,7 @@ static DEFINE_SPINLOCK(resource_alignment_lock); | |||
3699 | * RETURNS: Resource alignment if it is specified. | 3699 | * RETURNS: Resource alignment if it is specified. |
3700 | * Zero if it is not specified. | 3700 | * Zero if it is not specified. |
3701 | */ | 3701 | */ |
3702 | resource_size_t pci_specified_resource_alignment(struct pci_dev *dev) | 3702 | static resource_size_t pci_specified_resource_alignment(struct pci_dev *dev) |
3703 | { | 3703 | { |
3704 | int seg, bus, slot, func, align_order, count; | 3704 | int seg, bus, slot, func, align_order, count; |
3705 | resource_size_t align = 0; | 3705 | resource_size_t align = 0; |
@@ -3812,7 +3812,7 @@ void pci_reassigndev_resource_alignment(struct pci_dev *dev) | |||
3812 | } | 3812 | } |
3813 | } | 3813 | } |
3814 | 3814 | ||
3815 | ssize_t pci_set_resource_alignment_param(const char *buf, size_t count) | 3815 | static ssize_t pci_set_resource_alignment_param(const char *buf, size_t count) |
3816 | { | 3816 | { |
3817 | if (count > RESOURCE_ALIGNMENT_PARAM_SIZE - 1) | 3817 | if (count > RESOURCE_ALIGNMENT_PARAM_SIZE - 1) |
3818 | count = RESOURCE_ALIGNMENT_PARAM_SIZE - 1; | 3818 | count = RESOURCE_ALIGNMENT_PARAM_SIZE - 1; |
@@ -3823,7 +3823,7 @@ ssize_t pci_set_resource_alignment_param(const char *buf, size_t count) | |||
3823 | return count; | 3823 | return count; |
3824 | } | 3824 | } |
3825 | 3825 | ||
3826 | ssize_t pci_get_resource_alignment_param(char *buf, size_t size) | 3826 | static ssize_t pci_get_resource_alignment_param(char *buf, size_t size) |
3827 | { | 3827 | { |
3828 | size_t count; | 3828 | size_t count; |
3829 | spin_lock(&resource_alignment_lock); | 3829 | spin_lock(&resource_alignment_lock); |
diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c index 4e24cb8a94ae..2f15475b56bc 100644 --- a/drivers/pci/pcie/aer/aer_inject.c +++ b/drivers/pci/pcie/aer/aer_inject.c | |||
@@ -212,8 +212,8 @@ out: | |||
212 | return ops->read(bus, devfn, where, size, val); | 212 | return ops->read(bus, devfn, where, size, val); |
213 | } | 213 | } |
214 | 214 | ||
215 | int pci_write_aer(struct pci_bus *bus, unsigned int devfn, int where, int size, | 215 | static int pci_write_aer(struct pci_bus *bus, unsigned int devfn, int where, |
216 | u32 val) | 216 | int size, u32 val) |
217 | { | 217 | { |
218 | u32 *sim; | 218 | u32 *sim; |
219 | struct aer_error *err; | 219 | struct aer_error *err; |
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 7e8739e25b9e..502a75ea12fb 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c | |||
@@ -1044,7 +1044,7 @@ handle_done: | |||
1044 | ; | 1044 | ; |
1045 | } | 1045 | } |
1046 | 1046 | ||
1047 | void __ref __pci_bus_size_bridges(struct pci_bus *bus, | 1047 | static void __ref __pci_bus_size_bridges(struct pci_bus *bus, |
1048 | struct list_head *realloc_head) | 1048 | struct list_head *realloc_head) |
1049 | { | 1049 | { |
1050 | struct pci_dev *dev; | 1050 | struct pci_dev *dev; |