]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PCI: remove CONFIG_PCI_BUS_ADDR_T_64BIT
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Apr 2018 14:40:54 +0000 (16:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 May 2018 04:57:18 +0000 (06:57 +0200)
This symbol is now always identical to CONFIG_ARCH_DMA_ADDR_T_64BIT, so
remove it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/Kconfig
drivers/pci/bus.c
include/linux/pci.h

index 34b56a8f8480ab7504375e60e7e7aebee4f4eb0c..29a487f31daea764755f7cf0e7150aac4448c85b 100644 (file)
@@ -5,10 +5,6 @@
 
 source "drivers/pci/pcie/Kconfig"
 
-config PCI_BUS_ADDR_T_64BIT
-       def_bool y if (ARCH_DMA_ADDR_T_64BIT || 64BIT)
-       depends on PCI
-
 config PCI_MSI
        bool "Message Signaled Interrupts (MSI and MSI-X)"
        depends on PCI
index bc2ded4c451f95508daaf7426ff9cdf169f58899..35b7fc87eac506faf88ab3948e136195adfec823 100644 (file)
@@ -120,7 +120,7 @@ int devm_request_pci_bus_resources(struct device *dev,
 EXPORT_SYMBOL_GPL(devm_request_pci_bus_resources);
 
 static struct pci_bus_region pci_32_bit = {0, 0xffffffffULL};
-#ifdef CONFIG_PCI_BUS_ADDR_T_64BIT
+#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
 static struct pci_bus_region pci_64_bit = {0,
                                (pci_bus_addr_t) 0xffffffffffffffffULL};
 static struct pci_bus_region pci_high = {(pci_bus_addr_t) 0x100000000ULL,
@@ -230,7 +230,7 @@ int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res,
                                          resource_size_t),
                void *alignf_data)
 {
-#ifdef CONFIG_PCI_BUS_ADDR_T_64BIT
+#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
        int rc;
 
        if (res->flags & IORESOURCE_MEM_64) {
index 73178a2fcee09b10b0e5a78a838213d9fe204b65..55371cb827adc06db6b4a7f1b50f8c22b39441f5 100644 (file)
@@ -670,7 +670,7 @@ int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn,
 int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn,
                  int reg, int len, u32 val);
 
-#ifdef CONFIG_PCI_BUS_ADDR_T_64BIT
+#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
 typedef u64 pci_bus_addr_t;
 #else
 typedef u32 pci_bus_addr_t;