Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1456000 > unrolled thread

[PATCH] net: dsa: b53: Add missing ULL suffix for 64-bit constant

Started byGeert Uytterhoeven <geert@linux-m68k.org>
First post2016-08-03 21:50 +0200
Last post2016-08-03 21:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] net: dsa: b53: Add missing ULL suffix for 64-bit constant Geert Uytterhoeven <geert@linux-m68k.org> - 2016-08-03 21:50 +0200

#1456000 — [PATCH] net: dsa: b53: Add missing ULL suffix for 64-bit constant

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2016-08-03 21:50 +0200
Subject[PATCH] net: dsa: b53: Add missing ULL suffix for 64-bit constant
Message-ID<s2akW-6WY-21@gated-at.bofh.it>
On 32-bit (e.g. with m68k-linux-gnu-gcc-4.1):

    drivers/net/dsa/b53/b53_common.c: In function ‘b53_arl_read’:
    drivers/net/dsa/b53/b53_common.c:1072: warning: integer constant is too large for ‘long’ type

Fixes: 1da6df85c6fbed8f ("net: dsa: b53: Implement ARL add/del/dump operations")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/net/dsa/b53/b53_regs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/b53/b53_regs.h b/drivers/net/dsa/b53/b53_regs.h
index 8f12bddd5dc90077..a0b453ea34c90423 100644
--- a/drivers/net/dsa/b53/b53_regs.h
+++ b/drivers/net/dsa/b53/b53_regs.h
@@ -258,7 +258,7 @@
  * BCM5325 and BCM5365 share most definitions below
  */
 #define B53_ARLTBL_MAC_VID_ENTRY(n)	(0x10 * (n))
-#define   ARLTBL_MAC_MASK		0xffffffffffff
+#define   ARLTBL_MAC_MASK		0xffffffffffffULL
 #define   ARLTBL_VID_S			48
 #define   ARLTBL_VID_MASK_25		0xff
 #define   ARLTBL_VID_MASK		0xfff
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web