aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c8
1 files changed, 4 insertions, 4 deletions
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
2622int __pci_request_selected_regions(struct pci_dev *pdev, int bars, 2622static 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 */
3702resource_size_t pci_specified_resource_alignment(struct pci_dev *dev) 3702static 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
3815ssize_t pci_set_resource_alignment_param(const char *buf, size_t count) 3815static 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
3826ssize_t pci_get_resource_alignment_param(char *buf, size_t size) 3826static 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);