Skip to content

Commit

Permalink
sparc64: remove unused calc_npages() in iommu_common.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
FUJITA Tomonori authored and David S. Miller committed Mar 28, 2008
1 parent f088025 commit c819914
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions arch/sparc64/kernel/iommu_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c819914

Please sign in to comment.