PCI: Remove unused pci_pool wrappers
authorCai Huoqing <caihuoqing@baidu.com>
Mon, 18 Oct 2021 12:41:09 +0000 (20:41 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 18 Oct 2021 15:53:14 +0000 (10:53 -0500)
The pci_pool users have been converted to dma_pool.  Remove the unused
pci_pool wrappers.

Link: https://lore.kernel.org/r/20211018124110.214-1-caihuoqing@baidu.com
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci.h

index cd8aa6fce2041c47725b2009f34669ac274f2290..2ae9dd7f975fb74cc87f034e7d27298e4cfb445b 100644 (file)
@@ -1498,19 +1498,8 @@ int pci_set_vga_state(struct pci_dev *pdev, bool decode,
 #define PCI_IRQ_ALL_TYPES \
        (PCI_IRQ_LEGACY | PCI_IRQ_MSI | PCI_IRQ_MSIX)
 
-/* kmem_cache style wrapper around pci_alloc_consistent() */
-
 #include <linux/dmapool.h>
 
-#define        pci_pool dma_pool
-#define pci_pool_create(name, pdev, size, align, allocation) \
-               dma_pool_create(name, &pdev->dev, size, align, allocation)
-#define        pci_pool_destroy(pool) dma_pool_destroy(pool)
-#define        pci_pool_alloc(pool, flags, handle) dma_pool_alloc(pool, flags, handle)
-#define        pci_pool_zalloc(pool, flags, handle) \
-               dma_pool_zalloc(pool, flags, handle)
-#define        pci_pool_free(pool, vaddr, addr) dma_pool_free(pool, vaddr, addr)
-
 struct msix_entry {
        u32     vector; /* Kernel uses to write allocated vector */
        u16     entry;  /* Driver uses to specify entry, OS writes */