diff options
author | Francois Romieu <romieu@fr.zoreil.com> | 2007-11-28 15:36:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:14 -0500 |
commit | 5125a786680df0d6d31aad53bc23e19f51a30509 (patch) | |
tree | a515806a2a324a68ff229701dc9083adec423293 /drivers/net | |
parent | bd5a93462093305a9ea7abd888a16c8c83e4bdc2 (diff) |
r6040: compile error
drivers/net/r6040.c: In function 'rx_buf_alloc':
drivers/net/r6040.c:262: warning: passing argument 2 of 'pci_map_single' makes pointer from integer without a cast
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/r6040.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index 1d7efa2b6cbc..6a6329e64123 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c | |||
@@ -260,7 +260,7 @@ static void rx_buf_alloc(struct r6040_private *lp, struct net_device *dev) | |||
260 | if (!descptr->skb_ptr) | 260 | if (!descptr->skb_ptr) |
261 | break; | 261 | break; |
262 | descptr->buf = cpu_to_le32(pci_map_single(lp->pdev, | 262 | descptr->buf = cpu_to_le32(pci_map_single(lp->pdev, |
263 | descptr->skb_ptr->tail, | 263 | descptr->skb_ptr->data, |
264 | MAX_BUF_SIZE, PCI_DMA_FROMDEVICE)); | 264 | MAX_BUF_SIZE, PCI_DMA_FROMDEVICE)); |
265 | descptr->status = 0x8000; | 265 | descptr->status = 0x8000; |
266 | descptr = descptr->vndescp; | 266 | descptr = descptr->vndescp; |