summaryrefslogtreecommitdiffstats
path: root/drivers/pci/rom.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2018-06-30 04:17:26 +0200
committerBjorn Helgaas <bhelgaas@google.com>2018-06-30 04:17:26 +0200
commit783e84961b1d7a75045383586b8c49e02b7704cd (patch)
treeaac72e50285151dc25e126fb7c301462e2e12d1a /drivers/pci/rom.c
parentPCI: Add check code for last image indicator not set (diff)
downloadlinux-783e84961b1d7a75045383586b8c49e02b7704cd.tar.xz
linux-783e84961b1d7a75045383586b8c49e02b7704cd.zip
PCI: Make pci_get_rom_size() static
pci_get_rom_size() is called only from pci_map_rom(), so it can be static. Make it static and remove the declaration from include/linux/pci.h. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/rom.c')
-rw-r--r--drivers/pci/rom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/rom.c b/drivers/pci/rom.c
index 3a33f5ce314a..137bf0cee897 100644
--- a/drivers/pci/rom.c
+++ b/drivers/pci/rom.c
@@ -80,7 +80,8 @@ EXPORT_SYMBOL_GPL(pci_disable_rom);
* The PCI window size could be much larger than the
* actual image size.
*/
-size_t pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, size_t size)
+static size_t pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom,
+ size_t size)
{
void __iomem *image;
int last_image;