From: Paul Mackerras <paulus@samba.org>
To: Andrew Morton <akpm@osdl.org>
Cc: boutcher@us.ibm.com, linux-kernel@vger.kernel.org
Subject: [PATCH] Fix ibmveth.c compilation
Date: Tue, 13 Apr 2004 19:19:07 +1000 [thread overview]
Message-ID: <16507.45195.148525.945019@cargo.ozlabs.ibm.com> (raw)
This patch changes PCI_DMA_TODEVICE to DMA_TO_DEVICE in a couple of
places in drivers/net/ibmveth.c, since it doesn't compile without this
change and it does compile with it. It also reformats a couple of
over-long lines in the vicinity of the other changes.
Please apply.
Thanks,
Paul.
diff -urN linux-2.5/drivers/net/ibmveth.c test25/drivers/net/ibmveth.c
--- linux-2.5/drivers/net/ibmveth.c 2004-04-13 09:25:10.027576720 +1000
+++ test25/drivers/net/ibmveth.c 2004-04-13 18:37:04.966522224 +1000
@@ -641,7 +641,8 @@
/* map the initial fragment */
desc[0].fields.length = nfrags ? skb->len - skb->data_len : skb->len;
- desc[0].fields.address = vio_map_single(adapter->vdev, skb->data, desc[0].fields.length, PCI_DMA_TODEVICE);
+ desc[0].fields.address = vio_map_single(adapter->vdev, skb->data,
+ desc[0].fields.length, DMA_TO_DEVICE);
desc[0].fields.valid = 1;
if(dma_mapping_error(desc[0].fields.address)) {
@@ -657,9 +658,10 @@
/* map fragments past the initial portion if there are any */
while(curfrag--) {
skb_frag_t *frag = &skb_shinfo(skb)->frags[curfrag];
- desc[curfrag+1].fields.address = vio_map_single(adapter->vdev,
- page_address(frag->page) + frag->page_offset,
- frag->size, PCI_DMA_TODEVICE);
+ desc[curfrag+1].fields.address
+ = vio_map_single(adapter->vdev,
+ page_address(frag->page) + frag->page_offset,
+ frag->size, DMA_TO_DEVICE);
desc[curfrag+1].fields.length = frag->size;
desc[curfrag+1].fields.valid = 1;
next reply other threads:[~2004-04-13 9:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-13 9:19 Paul Mackerras [this message]
2004-04-13 16:32 ` Jeff Garzik
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=16507.45195.148525.945019@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=akpm@osdl.org \
--cc=boutcher@us.ibm.com \
--cc=linux-kernel@vger.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®