summaryrefslogtreecommitdiffstats
path: root/drivers/block/null_blk.c
diff options
context:
space:
mode:
authorYasuaki Ishimatsu <yasu.isimatu@gmail.com>2016-11-16 16:26:11 +0100
committerJens Axboe <axboe@fb.com>2016-11-16 16:26:11 +0100
commit92153d30c7c8863022cad684926d71ffaed6a56d (patch)
treef1ebf00c6fa2521dec6234ca2b76ebb6c23a49d2 /drivers/block/null_blk.c
parentblock: deal with stale req count of plug list (diff)
downloadlinux-92153d30c7c8863022cad684926d71ffaed6a56d.tar.xz
linux-92153d30c7c8863022cad684926d71ffaed6a56d.zip
null_blk: add usage hints for NVM
If CONFIG_NVM is disabled, loading null_block module with use_lightnvm=1 fails. But there are no messages and documents related to the failure. Add the appropriate error message. Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Massaged the text a bit. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/null_blk.c')
-rw-r--r--drivers/block/null_blk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c
index ba6f4a2e73db..4943ee22716e 100644
--- a/drivers/block/null_blk.c
+++ b/drivers/block/null_blk.c
@@ -577,6 +577,7 @@ static void null_nvm_unregister(struct nullb *nullb)
#else
static int null_nvm_register(struct nullb *nullb)
{
+ pr_err("null_blk: CONFIG_NVM needs to be enabled for LightNVM\n");
return -EINVAL;
}
static void null_nvm_unregister(struct nullb *nullb) {}