lkml.org 
[lkml]   [2004]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix ibmveth.c compilation
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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.026 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site