From: Francois Romieu Date: Wed, 28 Nov 2007 20:36:22 +0000 (+0100) Subject: r6040: compile error X-Git-Tag: v2.6.25-rc1~1162^2~584 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5125a786680df0d6d31aad53bc23e19f51a30509;p=linux-2.6 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 --- diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index 1d7efa2b6c..6a6329e641 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) 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;