mtip32xx: fix shift larger than type warning
authorJens Axboe <axboe@kernel.dk>
Thu, 8 Nov 2012 06:58:53 +0000 (07:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Nov 2012 13:32:55 +0000 (14:32 +0100)
commit7c5d62388e88729775b10a1748f2810e413f1e51
tree4d4d2cf8252a32f75a0c8b672ad921e161fa4cc1
parent4b9e884523f63f7bfd6fcbcdfe6f9f9545d98c13
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: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c