diff options
author | Charles Machalow <csm10495@gmail.com> | 2019-11-05 01:15:10 -0500 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2019-11-05 16:17:38 -0500 |
commit | 0d6eeb1fd625272bd60d25f2d5e116cf582fc7dc (patch) | |
tree | 7bde402c5afaf6de7dbc78c9672f379f75ff950a | |
parent | 763303a83a095a88c3a8a0d1abf97165db2e8bf5 (diff) |
nvme: change nvme_passthru_cmd64 to explicitly mark rsvd
Changing nvme_passthru_cmd64 to add a field: rsvd2. This field is an explicit
marker for the padding space added on certain platforms as a result of the
enlargement of the result field from 32 bit to 64 bits in size, and
fixes differences in struct size when using compat ioctl for 32-bit
binaries on 64-bit architecture.
Fixes: 65e68edce0db ("nvme: allow 64-bit results in passthru commands")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Charles Machalow <csm10495@gmail.com>
[changelog]
Signed-off-by: Keith Busch <kbusch@kernel.org>
-rw-r--r-- | include/uapi/linux/nvme_ioctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/nvme_ioctl.h b/include/uapi/linux/nvme_ioctl.h index e168dc59e9a0..d99b5a772698 100644 --- a/include/uapi/linux/nvme_ioctl.h +++ b/include/uapi/linux/nvme_ioctl.h | |||
@@ -63,6 +63,7 @@ struct nvme_passthru_cmd64 { | |||
63 | __u32 cdw14; | 63 | __u32 cdw14; |
64 | __u32 cdw15; | 64 | __u32 cdw15; |
65 | __u32 timeout_ms; | 65 | __u32 timeout_ms; |
66 | __u32 rsvd2; | ||
66 | __u64 result; | 67 | __u64 result; |
67 | }; | 68 | }; |
68 | 69 | ||