[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190916140759.52491-3-andrealmeid@collabora.com>
Date: Mon, 16 Sep 2019 11:07:58 -0300
From: André Almeida <andrealmeid@...labora.com>
To: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: axboe@...nel.dk, kernel@...labora.com, krisman@...labora.com,
André Almeida <andrealmeid@...labora.com>,
Chaitanya Kulkarni <chaitanya.kulkarni@....com>
Subject: [PATCH v3 2/3] null_blk: match the type of parameter nr_devices
Since the variable nr_devices is an unsigned int, the module_param()
should also use this type. Change the type so they can match.
Fixes: f7c4ce890dd2 ("null_blk: validate the number of devices")
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@....com>
Signed-off-by: André Almeida <andrealmeid@...labora.com>
---
Changes since v2:
- None
Changes since v1:
- Add "Fixes" tag
---
drivers/block/null_blk_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c
index be32cb5ed339..5d20d65041bd 100644
--- a/drivers/block/null_blk_main.c
+++ b/drivers/block/null_blk_main.c
@@ -142,7 +142,7 @@ module_param_named(bs, g_bs, int, 0444);
MODULE_PARM_DESC(bs, "Block size (in bytes)");
static unsigned int nr_devices = 1;
-module_param(nr_devices, int, 0444);
+module_param(nr_devices, uint, 0444);
MODULE_PARM_DESC(nr_devices, "Number of devices to register");
static bool g_blocking;
--
2.23.0
Powered by blists - more mailing lists