Skip to content

Commit 701dfc4

Browse files
andrealmeidaxboe
authored andcommitted
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: f7c4ce8 ("null_blk: validate the number of devices") Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: André Almeida <andrealmeid@collabora.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 4467453 commit 701dfc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/block/null_blk_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ module_param_named(bs, g_bs, int, 0444);
142142
MODULE_PARM_DESC(bs, "Block size (in bytes)");
143143

144144
static unsigned int nr_devices = 1;
145-
module_param(nr_devices, int, 0444);
145+
module_param(nr_devices, uint, 0444);
146146
MODULE_PARM_DESC(nr_devices, "Number of devices to register");
147147

148148
static bool g_blocking;

0 commit comments

Comments
 (0)