Skip to contentSkip to conversation

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

PATCH New Peter Huewe 1 participant 1 message 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

Since 7c65fa2a4c176c9bfab1ef954c4cef005dd9fb8b 'staging: vt6656: Remove QWORD from source and replace with u64.' a new sparse warning showed up:

'drivers/staging/vt6656/card.c:798:26: sparse: constant
0xffffffff00000000U is so big it is unsigned long'

-> Append L to fix the warning.

---
 drivers/staging/vt6656/card.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/vt6656/card.c +1 -1
index 7d725bb..f988f07 100644
@@ -790,7 +790,7 @@ u64 CARDqGetNextTBTT(u64 qwTSF, WORD wBeaconInterval)
 	if ((~uLowNextTBTT) < uLowRemain)
 		qwTSF = ((qwTSF >> 32) + 1) << 32;
 
-	qwTSF = (qwTSF & 0xffffffff00000000U) |
+	qwTSF = (qwTSF & 0xffffffff00000000UL) |
 		(u64)(uLowNextTBTT + uLowRemain);
 
     return (qwTSF);
Signature · 1 line
1.7.8.6