[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200704260723.l3Q7NF6G023823@shell0.pdx.osdl.net>
Date: Thu, 26 Apr 2007 00:23:15 -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 02/11] vioc-warning-fix
From: Andrew Morton <akpm@...ux-foundation.org>
Fix this, on i386:
drivers/net/vioc/vioc_transmit.c: In function 'vioc_tx_interrupt':
drivers/net/vioc/vioc_transmit.c:387: warning: cast from pointer to integer of different size
I dunno what the driver is trying to do here, but it looks unpleasant.
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_vnic.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff -puN drivers/net/vioc/vioc_vnic.h~vioc-warning-fix drivers/net/vioc/vioc_vnic.h
--- a/drivers/net/vioc/vioc_vnic.h~vioc-warning-fix
+++ a/drivers/net/vioc/vioc_vnic.h
@@ -103,11 +103,11 @@
)
#define VIOC_IRQ_PARAM_VIOC_ID(param) \
- (int) (((u64) param >> 28) & 0xf)
+ (int) (((long) param >> 28) & 0xf)
#define VIOC_IRQ_PARAM_INTR_ID(param) \
- (int) ((u64) param & 0xffff)
+ (int) ((long) param & 0xffff)
#define VIOC_IRQ_PARAM_PARAM_ID(param) \
- (int) (((u64) param >> 16) & 0xff)
+ (int) (((long) param >> 16) & 0xff)
#define VIOC_IRQ_PARAM_SET(vioc, intr, param) \
((((u64) vioc & 0xf) << 28) | \
_
-
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