[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20201221130440.1920-1-zhengyongjun3@huawei.com>
Date: Mon, 21 Dec 2020 21:04:40 +0800
From: Zheng Yongjun <zhengyongjun3@...wei.com>
To: <axboe@...nel.dk>, <linux-block@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Zheng Yongjun <zhengyongjun3@...wei.com>
Subject: [PATCH -next] block: brd: Replace simple_strtol by simple_strtoul
The simple_strtol() function is deprecated, use simple_strtoul() instead.
Signed-off-by: Zheng Yongjun <zhengyongjun3@...wei.com>
---
drivers/block/brd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index cc49a921339f..416b2a61fac1 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -357,7 +357,7 @@ MODULE_ALIAS("rd");
/* Legacy boot options - nonmodular */
static int __init ramdisk_size(char *str)
{
- rd_size = simple_strtol(str, NULL, 0);
+ rd_size = simple_strtoul(str, NULL, 0);
return 1;
}
__setup("ramdisk_size=", ramdisk_size);
--
2.22.0
Powered by blists - more mailing lists