[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200704260723.l3Q7NGFH023826@shell0.pdx.osdl.net>
Date: Thu, 26 Apr 2007 00:23:16 -0700
From: akpm@...ux-foundation.org
To: jeff@...zik.org
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org,
driver-support@...ric7.com, schidambaram@...ric7.com
Subject: [patch 03/11] vioc cast warningfix
From: Andrew Morton <akpm@...ux-foundation.org>
i386:
drivers/net/vioc/vioc_receive.c: In function '_vioc_fill_n_xfer':
drivers/net/vioc/vioc_receive.c:198: warning: cast from pointer to integer of different size
drivers/net/vioc/vioc_receive.c:199: warning: cast to pointer from integer of different size
drivers/net/vioc/vioc_irq.c: In function 'vioc_set_intr_func_param':
drivers/net/vioc/vioc_irq.c:344: warning: cast to pointer from integer of different size
This code looks fishy.
Cc: Sriram Chidambaram <schidambaram@...ric7.com>
Cc: Fabric7 Driver-Support <driver-support@...ric7.com>
Cc: Jeff Garzik <jeff@...zik.org>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
drivers/net/vioc/vioc_receive.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/net/vioc/vioc_receive.c~vioc-cast-warning-fix drivers/net/vioc/vioc_receive.c
--- a/drivers/net/vioc/vioc_receive.c~vioc-cast-warning-fix
+++ a/drivers/net/vioc/vioc_receive.c
@@ -195,8 +195,8 @@ static u32 _vioc_fill_n_xfer(struct rxdq
goto undo_refill;
}
/* Cache align */
- x = (u64) skb->data;
- skb->data = (unsigned char *)ALIGN(x, 64);
+ x = (u64)(long)skb->data;
+ skb->data = (unsigned char *)(long)ALIGN(x, 64);
rxdq->vbuf[idx].skb = skb;
rxdq->vbuf[idx].dma =
pci_map_single(rxdq->viocdev->pdev,
_
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists