Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2e81c02 authored by Jens Axboe's avatar Jens Axboe Committed by Greg Kroah-Hartman
Browse files

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: default avatarJens Axboe <axboe@fb.com>
[pebolle: backport to v4.4]
Signed-off-by: default avatarPaul Bolle <pebolle@tiscali.nl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f6031d95
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment