commit | 48d663a314489f136a46abf8e3f0d014d7769209 | [log] [tgz] |
---|---|---|
author | Matias Bjørling <matias@cnexlabs.com> | Sat Apr 15 20:55:40 2017 +0200 |
committer | Jens Axboe <axboe@fb.com> | Sun Apr 16 10:06:25 2017 -0600 |
tree | b106eabe6c0b11279e132e22d3588ccddbfbe123 | |
parent | 7a3de2b33f5213c423a59aeaaae2249196b4b5cc [diff] |
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>