Re: [PATCH v3 02/25] drm: core: fix common struct sg_table related issues

From
Christoph Hellwig <hch@lst.de>
Date
2020-05-08 07:16:15
Also in
linux-iommu, lkml
Reply to
Marek Szyprowski, 2020-05-08
On Fri, May 08, 2020 at 09:12:13AM +0200, Marek Szyprowski wrote:
Then we would just need one more helper to construct scatterlist, as the 
above two are read-only don't allow to modify scatterlist:

#define for_each_sgtable_sg(sgt, sg, i)                \
        for_each_sg(sgt->sgl, sg, sgt->orig_nents, i)

With the above 3 helpers we can probably get rid of all instances of 
sg_table->{nents,orig_nents} from the DRM code. I will prepare patches soon.
Sounds great, thanks!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (38 messages) 38 messages, 6 authors, last reply 2020-05-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help