block: brd: Staticize 'rd_size'
Subsystems (2)
PATCH 3/3 block: brd: Staticize 'rd_size'
'rd_size' is used only in this file.
Fix the following sparse warning:
drivers/block/brd.c:432:5: warning: symbol 'rd_size' was not declared. Should it be static?
Signed-off-by Jingoo Han <[email protected]>
--- drivers/block/brd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/brd.c +1 -1
@@ -429,7 +429,7 @@ static const struct block_device_operations brd_fops = {* And now the modules code and kernel interface. */ static int rd_nr; -int rd_size =CONFIG_BLK_DEV_RAM_SIZE ; +static int rd_size =CONFIG_BLK_DEV_RAM_SIZE ;static int max_part;static int part_shift;module_param (rd_nr, int,S_IRUGO );
Signature · 1 line
1.7.10.4