]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36edf531d3d76441ecacf4f3269b74d3ab81d0e4
treeb106eabe6c0b11279e132e22d3588ccddbfbe123
parent839c5d4d82726f5e4abc48264691c4e770f70941
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