Re: [PATCH v2 01/10] m68k: use for_each_sg()

2015-05-04 Thread Geert Uytterhoeven
On Fri, May 1, 2015 at 3:56 PM, Akinobu Mita wrote: > 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 e

[PATCH v2 01/10] m68k: use for_each_sg()

2015-05-01 Thread Akinobu Mita
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