Skip to contentSkip to conversation

staging: vt6656: Fix sparse warning constant 0xffffffff00000000U is so big it is unsigned long

PATCH In review Malcolm Priestley 2 participants 2 messages Feb 5, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6656: Fix sparse warning constant 0xffffffff00000000U is so big it is unsigned long

long long is needed for u64.

---
 drivers/staging/vt6656/card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6656/card.c +1 -1
index 7d725bb..4e8fcc9 100644
@@ -790,7 +790,7 @@ u64 CARDqGetNextTBTT(u64 qwTSF, WORD wBeaconInterval)
 	if ((~uLowNextTBTT) < uLowRemain)
 		qwTSF = ((qwTSF >> 32) + 1) << 32;
 
-	qwTSF = (qwTSF & 0xffffffff00000000U) |
+	qwTSF = (qwTSF & 0xffffffff00000000ULL) |
 		(u64)(uLowNextTBTT + uLowRemain);
 
     return (qwTSF);
Signature · 1 line
1.8.0
maintainer
#1 lore raw
Quoted 7 lines · Malcolm Priestley

long long is needed for u64.

---
 drivers/staging/vt6656/card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

You forgot to add a "Reported-by:" line to this patch, please do so and resend.

thanks,

greg k-h