* [PATCH] use sg helper function in DMA mapping documentation
@ 2007-08-08 10:59 saeed bishara
2007-08-08 11:06 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: saeed bishara @ 2007-08-08 10:59 UTC (permalink / raw)
To: trivial, linux-kernel, Jens Axboe; +Cc: saeed bishara
Signed-off-by: Saeed Bishara <saeed.bishara@gmail.com>
---
DMA-mapping.txt | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- a/Documentation/DMA-mapping.txt 2007-08-08 12:51:07.000000000 +0300
+++ b/Documentation/DMA-mapping.txt 2007-08-08 12:50:02.000000000 +0300
@@ -514,7 +514,7 @@
int i, count = pci_map_sg(dev, sglist, nents, direction);
struct scatterlist *sg;
- for (i = 0, sg = sglist; i < count; i++, sg++) {
+ for_each_sg(sglist, sg, count, i) {
hw_address[i] = sg_dma_address(sg);
hw_len[i] = sg_dma_len(sg);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] use sg helper function in DMA mapping documentation
2007-08-08 10:59 [PATCH] use sg helper function in DMA mapping documentation saeed bishara
@ 2007-08-08 11:06 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2007-08-08 11:06 UTC (permalink / raw)
To: saeed bishara; +Cc: trivial, linux-kernel
On Wed, Aug 08 2007, saeed bishara wrote:
> Signed-off-by: Saeed Bishara <saeed.bishara@gmail.com>
> ---
> DMA-mapping.txt | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
Good catch, will add that to the sglist branch. Thanks!
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-08 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-08 10:59 [PATCH] use sg helper function in DMA mapping documentation saeed bishara
2007-08-08 11:06 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.