]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
m68k: Use for_each_sg()
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 1 May 2015 06:47:22 +0000 (15:47 +0900)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 1 Jun 2015 08:36:29 +0000 (10:36 +0200)
commit1214c525484cabb27ed37df936c3451682757263
tree6e61f889d8c4c01d8e7e71eb585a550e489843f6
parent4d686b02f68f3f821cadb2f3898b07867e3fafde
m68k: 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 m68k 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>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
Cc: linux-arch@vger.kernel.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/dma.c