mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "saeed bishara" <saeed.bishara@gmail.com>
To: trivial@kernel.org, linux-kernel@vger.kernel.org,
	"Jens Axboe" <jens.axboe@oracle.com>
Cc: "saeed bishara" <saeed.bishara@gmail.com>
Subject: [PATCH] use sg helper function in DMA mapping documentation
Date: Wed, 8 Aug 2007 13:59:26 +0300	[thread overview]
Message-ID: <c70ff3ad0708080359m1dae4fbes6955d38b1da51323@mail.gmail.com> (raw)

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);
        }

             reply	other threads:[~2007-08-08 10:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-08 10:59 saeed bishara [this message]
2007-08-08 11:06 ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c70ff3ad0708080359m1dae4fbes6955d38b1da51323@mail.gmail.com \
    --to=saeed.bishara@gmail.com \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®