diff mbox

[1/2] brd: Make rd_size argument static

Message ID 1477396407-28847-1-git-send-email-jack@suse.cz (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kara Oct. 25, 2016, 11:53 a.m. UTC
rd_size does not appear to be used outside of brd. Make it static.

Signed-off-by: Jan Kara <jack@suse.cz>
---
 drivers/block/brd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jens Axboe Oct. 25, 2016, 2:23 p.m. UTC | #1
On 10/25/2016 05:53 AM, Jan Kara wrote:
> rd_size does not appear to be used outside of brd. Make it static.

Applied both patches, thanks Jan.
diff mbox

Patch

diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index 0c76d4016eeb..8b22e4a04918 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -443,7 +443,7 @@  static int rd_nr = CONFIG_BLK_DEV_RAM_COUNT;
 module_param(rd_nr, int, S_IRUGO);
 MODULE_PARM_DESC(rd_nr, "Maximum number of brd devices");
 
-int rd_size = CONFIG_BLK_DEV_RAM_SIZE;
+static int rd_size = CONFIG_BLK_DEV_RAM_SIZE;
 module_param(rd_size, int, S_IRUGO);
 MODULE_PARM_DESC(rd_size, "Size of each RAM disk in kbytes.");