lightnvm: enable nvme size compile asserts
authorMatias Bjørling <matias@cnexlabs.com>
Sat, 15 Apr 2017 18:55:40 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:25 +0000 (10:06 -0600)
commit48d663a314489f136a46abf8e3f0d014d7769209
treeb106eabe6c0b11279e132e22d3588ccddbfbe123
parent7a3de2b33f5213c423a59aeaaae2249196b4b5cc
lightnvm: enable nvme size compile asserts

The asserts in _nvme_nvm_check_size are not compiled due to the function
not begin called. Make sure that it is called, and also fix the wrong
sizes of asserts for nvme_nvm_addr_format, and nvme_nvm_bb_tbl, which
checked for number of bits instead of bytes.

Reported-by: Scott Bauer <scott.bauer@intel.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/lightnvm.c