lkml.org 
[lkml]   [2020]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 02/25] drm: core: fix common struct sg_table related issues
> -		for_each_sg_page(st->sgl, &sg_iter, st->nents, 0)
> + for_each_sg_page(st->sgl, &sg_iter, st->orig_nents, 0)

Would it make sense to also add a for_each_sgtable_page helper that
hides the use of orig_nents? To be used like:

for_each_sgtable_page(st, &sg_iter, 0) {

> + for_each_sg(sgt->sgl, sg, sgt->orig_nents, count) {

Same here, e.g.

for_each_sgtable_entry(sgt, sg, count) {

?

\
 
 \ /
  Last update: 2020-05-05 12:15    [W:0.060 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site