Commit c819914e authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by David S. Miller

sparc64: remove unused calc_npages() in iommu_common.h

Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f0880257
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment