diff options
author | Keith Busch <keith.busch@intel.com> | 2012-09-26 20:49:27 +0200 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2012-11-13 15:13:50 +0100 |
commit | 6ecec74520d8a357726e6c12f99080dbe7b347dd (patch) | |
tree | e1b10453135e9b95b5f7986272d99b2628da6b25 /drivers | |
parent | NVMe: Add result to nvme_get_features (diff) | |
download | linux-6ecec74520d8a357726e6c12f99080dbe7b347dd.tar.xz linux-6ecec74520d8a357726e6c12f99080dbe7b347dd.zip |
NVMe: Define SMART log
This data structure is defined in the NVMe specification. It's not used
by the kernel, but is available for use by userspace software.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/nvme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index c1d5444f0cb3..270805cf8d42 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c @@ -135,6 +135,7 @@ static inline void _nvme_check_size(void) BUILD_BUG_ON(sizeof(struct nvme_id_ctrl) != 4096); BUILD_BUG_ON(sizeof(struct nvme_id_ns) != 4096); BUILD_BUG_ON(sizeof(struct nvme_lba_range_type) != 64); + BUILD_BUG_ON(sizeof(struct nvme_smart_log) != 512); } typedef void (*nvme_completion_fn)(struct nvme_dev *, void *, |