diff options
author | Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com> | 2016-10-19 09:51:05 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-10-19 11:36:22 -0600 |
commit | 8ef2074d28373014d05e92b5f13364ef51075b6e (patch) | |
tree | 91ac7fced12f266dbf6e42aa73c0dffa1aeb039f /include | |
parent | 202021c1a63c6ed69b3260e0fe10530c51f1e53e (diff) | |
download | linux-rpi-8ef2074d28373014d05e92b5f13364ef51075b6e.tar.gz linux-rpi-8ef2074d28373014d05e92b5f13364ef51075b6e.tar.bz2 linux-rpi-8ef2074d28373014d05e92b5f13364ef51075b6e.zip |
nvme: Add tertiary number to NVME_VS
NVMe 1.2.1 specification adds a tertiary element to the version number.
This updates the macro and its callers to include the final number and
fixup a single place in nvmet where the version was generated manually.
Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvme.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 7676557ce357..086d196e68f7 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -960,6 +960,7 @@ struct nvme_completion { __le16 status; /* did the command fail, and if so, why? */ }; -#define NVME_VS(major, minor) (((major) << 16) | ((minor) << 8)) +#define NVME_VS(major, minor, tertiary) \ + (((major) << 16) | ((minor) << 8) | (tertiary)) #endif /* _LINUX_NVME_H */ |