diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-06-05 09:15:12 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-05 09:19:08 -0600 |
commit | 21ff1399ad95811629e13fa70e2386f3bba85fe5 (patch) | |
tree | 9d4b01421e54eac44942b016d34d252c09cd90f0 /drivers/lightnvm/pblk-init.c | |
parent | d2ac838e4cd7e5e9891ecc094d626734b0245c99 (diff) | |
download | linux-21ff1399ad95811629e13fa70e2386f3bba85fe5.tar.gz linux-21ff1399ad95811629e13fa70e2386f3bba85fe5.tar.bz2 linux-21ff1399ad95811629e13fa70e2386f3bba85fe5.zip |
lightnvm: pblk: make symbol write_buffer_size static
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>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
-rw-r--r-- | drivers/lightnvm/pblk-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index ce561f5d48ce..491df0fa0835 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -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"); |