nvme: enforce 64bit offset for nvme_get_log_ext fn
authorMatias Bjørling <mb@lightnvm.io>
Thu, 12 Apr 2018 15:16:03 +0000 (09:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Apr 2018 15:58:27 +0000 (09:58 -0600)
commit7ec6074ff005e5f6cd2cf186a9ec7496c3db04f9
tree071a6801a3e6e94570ef9b9a9c6b156ca1a118ae
parent2d097c50212e137e7b53ffe3b37561153eeba87d
nvme: enforce 64bit offset for nvme_get_log_ext fn

Compiling on 32 bits system produces a warning for the shift width
when shifting 32 bit integer with 64bit integer.

Make sure that offset always is 64bit, and use macros for retrieving
lower and upper bits of the offset.

Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h