[v17,02/10] PCI: Remove unused __weak attribute in pci_register_io_range()

Message ID 1521051359-34473-3-git-send-email-john.garry@huawei.com
State New
Headers show
  • Untitled series #10073
Related show

Commit Message

John Garry March 14, 2018, 6:15 p.m.
From: Gabriele Paoloni <gabriele.paoloni@huawei.com>

Currently pci_register_io_range() has only one definition;
therefore there is no use of the __weak attribute.

Signed-off-by: Gabriele Paoloni <gabriele.paoloni@huawei.com>

Acked-by: Bjorn Helgaas <bhelgaas@google.com>

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>

Tested-by: dann frazier <dann.frazier@canonical.com>

 drivers/pci/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index ae654e2..ff41a64 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -3451,7 +3451,7 @@  struct io_range {
  * Record the PCI IO range (expressed as CPU physical address + size).
  * Return a negative value if an error has occured, zero otherwise
-int __weak pci_register_io_range(phys_addr_t addr, resource_size_t size)
+int pci_register_io_range(phys_addr_t addr, resource_size_t size)
 	int err = 0;