mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-03-07 04:00:15 +00:00
staging/vt6656: Fix too large integer constant warning on 32-bit
drivers/staging/vt6656/card.c: In function ‘CARDqGetNextTBTT’: drivers/staging/vt6656/card.c:793: warning: integer constant is too large for ‘unsigned long’ type Commit c7b7cad0d8df823ea063c86a54316bbcbfa04a7c ("staging/vt6656: Fix sparse warning constant 0xffffffff00000000U is so big it is unsigned long") changed the constant to "0xffffffff00000000UL", but that only works on 64-bit. Change it "0xffffffff00000000ULL" to fix it for 32-bit, too. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b5ae11463a
commit
aa1e123482
@ -790,7 +790,7 @@ u64 CARDqGetNextTBTT(u64 qwTSF, WORD wBeaconInterval)
|
||||
if ((~uLowNextTBTT) < uLowRemain)
|
||||
qwTSF = ((qwTSF >> 32) + 1) << 32;
|
||||
|
||||
qwTSF = (qwTSF & 0xffffffff00000000UL) |
|
||||
qwTSF = (qwTSF & 0xffffffff00000000ULL) |
|
||||
(u64)(uLowNextTBTT + uLowRemain);
|
||||
|
||||
return (qwTSF);
|
||||
|
Loading…
x
Reference in New Issue
Block a user