summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2012-09-26 12:49:27 -0600
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2012-11-13 09:13:50 -0500
commit6ecec74520d8a357726e6c12f99080dbe7b347dd (patch)
treee1b10453135e9b95b5f7986272d99b2628da6b25 /drivers/block
parent08df1e05657fc6712e520e7c09cc6c86160ceb35 (diff)
downloadblackbird-op-linux-6ecec74520d8a357726e6c12f99080dbe7b347dd.tar.gz
blackbird-op-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/block')
-rw-r--r--drivers/block/nvme.c1
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 *,
OpenPOWER on IntegriCloud