diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-03-28 18:56:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-28 18:56:01 -0400 |
commit | c819914e0d5cc85cccf5fe7542fcb9586286bc28 (patch) | |
tree | e751d0e1948c512f32e90442d9ccd747f1660db5 /arch/sparc64 | |
parent | f08802572965873af97e74337d5740bfa2542941 (diff) |
sparc64: remove unused calc_npages() in iommu_common.h
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>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/kernel/iommu_common.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/sparc64/kernel/iommu_common.h b/arch/sparc64/kernel/iommu_common.h index 87ace495d45f..f3575a614fa2 100644 --- a/arch/sparc64/kernel/iommu_common.h +++ b/arch/sparc64/kernel/iommu_common.h | |||
@@ -46,19 +46,6 @@ static inline unsigned long iommu_num_pages(unsigned long vaddr, | |||
46 | return npages; | 46 | return npages; |
47 | } | 47 | } |
48 | 48 | ||
49 | static inline unsigned long calc_npages(struct scatterlist *sglist, int nelems) | ||
50 | { | ||
51 | unsigned long i, npages = 0; | ||
52 | struct scatterlist *sg; | ||
53 | |||
54 | for_each_sg(sglist, sg, nelems, i) { | ||
55 | unsigned long paddr = SG_ENT_PHYS_ADDRESS(sg); | ||
56 | npages += iommu_num_pages(paddr, sg->length); | ||
57 | } | ||
58 | |||
59 | return npages; | ||
60 | } | ||
61 | |||
62 | static inline int is_span_boundary(unsigned long entry, | 49 | static inline int is_span_boundary(unsigned long entry, |
63 | unsigned long shift, | 50 | unsigned long shift, |
64 | unsigned long boundary_size, | 51 | unsigned long boundary_size, |