projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd5a934
)
r6040: compile error
author
Francois Romieu
<romieu@fr.zoreil.com>
Wed, 28 Nov 2007 20:36:22 +0000
(21:36 +0100)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 23:04:14 +0000
(15:04 -0800)
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>
drivers/net/r6040.c
patch
|
blob
|
history
diff --git
a/drivers/net/r6040.c
b/drivers/net/r6040.c
index 1d7efa2b6cbcd6cd1b15ed348f82b3049b0f786f..6a6329e641233383a35aff009c7d61ace132c9eb 100644
(file)
--- 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)
if (!descptr->skb_ptr)
break;
descptr->buf = cpu_to_le32(pci_map_single(lp->pdev,
- descptr->skb_ptr->
tail
,
+ descptr->skb_ptr->
data
,
MAX_BUF_SIZE, PCI_DMA_FROMDEVICE));
descptr->status = 0x8000;
descptr = descptr->vndescp;