lightnvm: ensure that nvm_dev_ops can be used without CONFIG_NVM
authorJens Axboe <axboe@fb.com>
Wed, 13 Jan 2016 20:04:11 +0000 (13:04 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 13 Jan 2016 20:04:11 +0000 (13:04 -0700)
commita7fd9a4f3e8179bab31e4637236ebb0e0b7867c6
treec17e0ba827b4518728b7142fd24b31a70b90af0f
parent8b4970c41f88ad772771f87b1c82c395248a84d8
lightnvm: ensure that nvm_dev_ops can be used without CONFIG_NVM

null_blk defines an empty version of this ops structure if CONFIG_NVM
isn't set, but it doesn't know the type. Move those bits out of the
protection of CONFIG_NVM in the main lightnvm include.

Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/lightnvm.h