aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-17 01:26:46 -0400
committerJason Cooper <jason@lakedaemon.net>2013-10-08 13:57:40 -0400
commitf5072dfbac053200c8865c4fb15e4f020b7b5d1d (patch)
tree6cacac866c00895593bbf0d3e35706c2dc3c5c7d
parent032b4c0cc321b7b14e4035997f6debd1b42cdbe2 (diff)
PCI: mvebu: make local functions static
mvebu_pcie_add_bus(), mvebu_pcie_align_resource() are used only in this file. Thus, these local functions should be staticized in order to fix the following sparse warnings: drivers/pci/host/pci-mvebu.c:684:6: warning: symbol 'mvebu_pcie_add_bus' was not declared. Should it be static? drivers/pci/host/pci-mvebu.c:690:17: warning: symbol 'mvebu_pcie_align_resource' was not declared. Should it be static? Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--drivers/pci/host/pci-mvebu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index 73b6baea4879..80b2250ea19a 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -693,17 +693,17 @@ static struct pci_bus *mvebu_pcie_scan_bus(int nr, struct pci_sys_data *sys)
693 return bus; 693 return bus;
694} 694}
695 695
696void mvebu_pcie_add_bus(struct pci_bus *bus) 696static void mvebu_pcie_add_bus(struct pci_bus *bus)
697{ 697{
698 struct mvebu_pcie *pcie = sys_to_pcie(bus->sysdata); 698 struct mvebu_pcie *pcie = sys_to_pcie(bus->sysdata);
699 bus->msi = pcie->msi; 699 bus->msi = pcie->msi;
700} 700}
701 701
702resource_size_t mvebu_pcie_align_resource(struct pci_dev *dev, 702static resource_size_t mvebu_pcie_align_resource(struct pci_dev *dev,
703 const struct resource *res, 703 const struct resource *res,
704 resource_size_t start, 704 resource_size_t start,
705 resource_size_t size, 705 resource_size_t size,
706 resource_size_t align) 706 resource_size_t align)
707{ 707{
708 if (dev->bus->number != 0) 708 if (dev->bus->number != 0)
709 return start; 709 return start;