]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 8 Nov 2012 06:58:53 +0000 (07:58 +0100)
commit5ef0c6ec2fc940fcc6006615ae007cc4f15f9fcd
tree4d4d2cf8252a32f75a0c8b672ad921e161fa4cc1
parentd9d98f09a2508b5a4bb94c1f443eff61be4fb742
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