Skip to content

Commit

Permalink
lightnvm: pblk: make symbol write_buffer_size static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Wei Yongjun authored and axboe committed Jun 5, 2018
1 parent d2ac838 commit 21ff139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/lightnvm/pblk-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 21ff139

Please sign in to comment.