lightnvm: pblk: make symbol write_buffer_size static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 5 Jun 2018 09:15:12 +0000 (09:15 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 5 Jun 2018 15:19:08 +0000 (09:19 -0600)
Fixes the following sparse warning:

drivers/lightnvm/pblk-init.c:23:14: warning:
 symbol 'write_buffer_size' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c

index ce561f5..491df0f 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "pblk.h"
 
-unsigned int write_buffer_size;
+static unsigned int write_buffer_size;
 
 module_param(write_buffer_size, uint, 0644);
 MODULE_PARM_DESC(write_buffer_size, "number of entries in a write buffer");