]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arc: use for_each_sg()
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 30 Jun 2015 21:58:30 +0000 (14:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2015 02:44:58 +0000 (19:44 -0700)
commit92ed932d3081e494a6c61d22c093af100a313034
tree6beecb5f7b26bfebb0769273e5a92c64651dcd2f
parent9ce71148b027e2bd27016139cae1c39401587695
arc: use for_each_sg()

This replaces the plain loop over the sglist array with for_each_sg()
macro which consists of sg_next() function calls.  Since arc doesn't
select ARCH_HAS_SG_CHAIN, it is not necessary to use for_each_sg() in
order to loop over each sg element.  But this can help find problems with
drivers that do not properly initialize their sg tables when
CONFIG_DEBUG_SG is enabled.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arc/include/asm/dma-mapping.h