]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
lightnvm: fix type coercion
authorKeith Busch <keith.busch@intel.com>
Tue, 17 Jul 2018 21:56:25 +0000 (15:56 -0600)
committerKeith Busch <keith.busch@intel.com>
Tue, 17 Jul 2018 22:22:19 +0000 (16:22 -0600)
commit93373e0a3b74d6866cb4c4dc5236b15ae2d70d05
tree9b39d7ad50e0912a40a7aa499ae76fd88e7d4704
parent5bc6f6414b7505d6453e1ad4d1af6e03e0042dfb
lightnvm: fix type coercion

The lightnvm passthrough command wasn't actually aligned to the ioctl's
structure because it had an extra dword, and some compilers were having a
hard time dealing with some of the other structure casting. This fixes
the passthrough structure by removing the erroneous dword, and uses
temporary void pointers for type casting.

Link: https://github.com/linux-nvme/nvme-cli/issues/386
Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme-lightnvm.c
nvme-lightnvm.h