Skip to content
Commit 7c5d6238 authored by Jens Axboe's avatar Jens Axboe
Browse files

mtip32xx: fix shift larger than type warning



If we're building a 32-bit kernel and CONFIG_LBADF isn't set,
sector_t is 32-bits wide. The shifts by 32 and 40 are thus
larger than we support.

Cast the sector offset to a u64 to avoid these warnings.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4b9e8845
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment