staging: vt6656: Fix sparse warning constant 0xffffffff00000000U is so big it is unsigned long
PATCH 1/1 staging: vt6656: Fix sparse warning constant 0xffffffff00000000U is so big it is unsigned long
long long is needed for u64.
Signed-off-by Malcolm Priestley <[email protected]>
--- drivers/staging/vt6656/card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6656/card.c +1 -1
@@ -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
Greg KH
maintainerQuoted 7 lines · Malcolm Priestley
long long is needed for u64.
Signed-off-by Malcolm Priestley <[email protected]>--- 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