PCI: Make bus_attr_resource_alignment static
authorBen Dooks <ben.dooks@codethink.co.uk>
Thu, 9 Jun 2016 10:42:13 +0000 (11:42 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 11 Jun 2016 00:20:17 +0000 (19:20 -0500)
The symbol bus_attr_resource_alignment is not exported or declared
elsewhere, so make it static to fix the following warning:

  drivers/pci/pci.c:4900:1: warning: symbol 'bus_attr_resource_alignment' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c

index c8b4dbdd1bddae95c214e92b52492b82364afcaf..9add28516a6685a8123b22956a0ec22b7e7853e9 100644 (file)
@@ -4897,7 +4897,7 @@ static ssize_t pci_resource_alignment_store(struct bus_type *bus,
        return pci_set_resource_alignment_param(buf, count);
 }
 
-BUS_ATTR(resource_alignment, 0644, pci_resource_alignment_show,
+static BUS_ATTR(resource_alignment, 0644, pci_resource_alignment_show,
                                        pci_resource_alignment_store);
 
 static int __init pci_resource_alignment_sysfs_init(void)