]> 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)
commit44a9b5df152771de6b129f57f4a648a1a1e026b6
tree071a6801a3e6e94570ef9b9a9c6b156ca1a118ae
parentc401b433938ff2e60678d0db8d36ff638b21255d
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