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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2016 07:01:32 +0000 (03:01 -0400)
commitf2e81c026017222c18b178f175adf415c276b131
tree3b15fa8c3613be3e96ae7c0b51c82239594f8ad1
parentf6031d95320dc2930f1b813e98533a01c92f3dc0
lightnvm: ensure that nvm_dev_ops can be used without CONFIG_NVM

commit a7fd9a4f3e8179bab31e4637236ebb0e0b7867c6 upstream.

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>
[pebolle: backport to v4.4]
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/lightnvm.h