ethernet/broadcom/tg3: Fix sparse warning: constant 0x7fffffffffffffff is so big...
authorPeter Hüwe <PeterHuewe@gmx.de>
Thu, 3 Jan 2013 04:23:50 +0000 (04:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jan 2013 23:11:32 +0000 (15:11 -0800)
Sparse complains that:
drivers/net/ethernet/broadcom/tg3.c:5670:55: sparse: constant
0x7fffffffffffffff is so big it is long long (on x86/32 bit)

so we suffix the constant with LL in the header file.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.h

index d330e81f5793ad47e8f6257d3e08c728719c9651..247d954f3308b69b81a8351465f9039bdb673bd0 100644 (file)
 #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                0x7fffffffffffffffLL
 /* 0x5c8 --> 0x600 unused */
 #define MAC_TX_MAC_STATE_BASE          0x00000600 /* 16 bytes */
 #define MAC_RX_MAC_STATE_BASE          0x00000610 /* 20 bytes */