]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 15:58:42 +0000 (08:58 -0700)
commit8a74b60f967b3ba615d7841ece6123d0e44bf84f
tree3fb189ac3f1b36b76f6a5e45aab134a69a65c6e7
parent823c942fe04de383f3f11a9feebdc98fc25359a9
lightnvm: ensure that nvm_dev_ops can be used without CONFIG_NVM

BugLink: http://bugs.launchpad.net/bugs/1531539
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>
(cherry picked from commit a7fd9a4f3e8179bab31e4637236ebb0e0b7867c6)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
include/linux/lightnvm.h