The patch titled sparc64: remove unused calc_npages() in iommu_common.h has been added to the -mm tree. Its filename is sparc64-remove-unused-calc_npages-in-iommu_commonh.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: sparc64: remove unused calc_npages() in iommu_common.h From: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> Signed-off-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> Cc: David Miller <davem@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/sparc64/kernel/iommu_common.h | 13 ------------- 1 file changed, 13 deletions(-) diff -puN arch/sparc64/kernel/iommu_common.h~sparc64-remove-unused-calc_npages-in-iommu_commonh arch/sparc64/kernel/iommu_common.h --- a/arch/sparc64/kernel/iommu_common.h~sparc64-remove-unused-calc_npages-in-iommu_commonh +++ a/arch/sparc64/kernel/iommu_common.h @@ -46,19 +46,6 @@ static inline unsigned long iommu_num_pa 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, _ Patches currently in -mm which might be from fujita.tomonori@xxxxxxxxxxxxx are alpha-use-iommu_is_span_boundary-helper-function.patch lib-swiotlbc-avoid-endless-loops.patch lib-swiotlbc-avoid-endless-loops-fix.patch ia64-make-iommu-respect-the-segment-boundary-limits.patch git-scsi-misc.patch ipsc-fix-build-warning.patch drivers-scsi-initioc-suppress-compile-warning.patch drivers-scsi-hptiopc-fix-build-warning.patch sparc64-add-the-segment-boundary-checking-to-iommus-while-merging-sg-entries.patch sparc64-remove-unused-calc_npages-in-iommu_commonh.patch lib-swiotlbc-cleanups.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html