* [PATCH][TRIVIAL] tg3: Fix compilation warning
@ 2013-04-09 1:22 Wang YanQing
0 siblings, 0 replies; only message in thread
From: Wang YanQing @ 2013-04-09 1:22 UTC (permalink / raw)
To: jkosina; +Cc: linux-kernel, trivial
This patch fix the below compilation warning:
linux/drivers/net/ethernet/broadcom/tg3.c: In function 'tg3_hwclock_to_timestamp':
linux/drivers/net/ethernet/broadcom/tg3.c:5686: warning: integer constant is too large for 'long' type
Signed-off-by: Wang YanQing <udknight@gmail.com>
---
drivers/net/ethernet/broadcom/tg3.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/broadcom/tg3.h b/drivers/net/ethernet/broadcom/tg3.h
index d330e81..6ec480a 100644
--- a/drivers/net/ethernet/broadcom/tg3.h
+++ b/drivers/net/ethernet/broadcom/tg3.h
@@ -774,7 +774,7 @@
#define SG_DIG_AUTONEG_ERROR 0x00000001
#define TG3_TX_TSTAMP_LSB 0x000005c0
#define TG3_TX_TSTAMP_MSB 0x000005c4
-#define TG3_TSTAMP_MASK 0x7fffffffffffffff
+#define TG3_TSTAMP_MASK 0x7fffffffffffffffULL
/* 0x5c8 --> 0x600 unused */
#define MAC_TX_MAC_STATE_BASE 0x00000600 /* 16 bytes */
#define MAC_RX_MAC_STATE_BASE 0x00000610 /* 20 bytes */
--
1.7.12.4.dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-09 1:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-09 1:22 [PATCH][TRIVIAL] tg3: Fix compilation warning Wang YanQing
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.