]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit258c2f5d90b7e0996b0aac5836b4b73cd0d4528b
tree071a6801a3e6e94570ef9b9a9c6b156ca1a118ae
parentda2bed6b656c9bff078dc364f36f002fb8d778f2
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