sparc64: remove unused calc_npages() in iommu_common.h
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 28 Mar 2008 22:56:01 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2008 22:56:01 +0000 (15:56 -0700)
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/iommu_common.h

index 87ace495d45f48ff0181297d396e00a11b13fef2..f3575a614fa2e643dbcc5f93e3e2e03f26e77e2e 100644 (file)
@@ -46,19 +46,6 @@ static inline unsigned long iommu_num_pages(unsigned long vaddr,
        return npages;
 }
 
-static inline unsigned long calc_npages(struct scatterlist *sglist, int nelems)
-{
-       unsigned long i, npages = 0;
-       struct scatterlist *sg;
-
-       for_each_sg(sglist, sg, nelems, i) {
-               unsigned long paddr = SG_ENT_PHYS_ADDRESS(sg);
-               npages += iommu_num_pages(paddr, sg->length);
-       }
-
-       return npages;
-}
-
 static inline int is_span_boundary(unsigned long entry,
                                   unsigned long shift,
                                   unsigned long boundary_size,