x86: remove unused iommu_nr_pages
authorJeremy Fitzhardinge <jeremy@goop.org>
Tue, 16 Dec 2008 20:17:25 +0000 (12:17 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 16 Dec 2008 20:31:37 +0000 (21:31 +0100)
Impact: cleanup, remove dead code

The last usage was removed by the patch set culminating in

| commit e3c449f526cebb8d287241c7e82faafd9709668b
| Author: Joerg Roedel <joerg.roedel@amd.com>
| Date:   Wed Oct 15 22:02:11 2008 -0700
|
|     x86, AMD IOMMU: convert driver to generic iommu_num_pages function

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/iommu.h
arch/x86/kernel/pci-dma.c

index 0b500c5b6446e6690846fe9d13a0a5483bef2f20..35276ec5925b0ee7dcaad9aaadcb7d1a1382cb27 100644 (file)
@@ -7,8 +7,6 @@ extern struct dma_mapping_ops nommu_dma_ops;
 extern int force_iommu, no_iommu;
 extern int iommu_detected;
 
-extern unsigned long iommu_nr_pages(unsigned long addr, unsigned long len);
-
 /* 10 seconds */
 #define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
 
index 192624820217f9eeeb64ee39ada5ad57a76a0df5..e150ad4f0cccbc5ca03a5959be72787c49476ab5 100644 (file)
@@ -125,13 +125,6 @@ void __init pci_iommu_alloc(void)
        pci_swiotlb_init();
 }
 
-unsigned long iommu_nr_pages(unsigned long addr, unsigned long len)
-{
-       unsigned long size = roundup((addr & ~PAGE_MASK) + len, PAGE_SIZE);
-
-       return size >> PAGE_SHIFT;
-}
-EXPORT_SYMBOL(iommu_nr_pages);
 #endif
 
 void *dma_generic_alloc_coherent(struct device *dev, size_t size,
This page took 0.034787 seconds and 5 git commands to generate.