All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] block: brd: Replace simple_strtol by simple_strtoul
@ 2020-12-21 13:04 Zheng Yongjun
  0 siblings, 0 replies; only message in thread
From: Zheng Yongjun @ 2020-12-21 13:04 UTC (permalink / raw)
  To: axboe, linux-block, linux-kernel; +Cc: Zheng Yongjun

The simple_strtol() function is deprecated, use simple_strtoul() instead.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-21 13:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 13:04 [PATCH -next] block: brd: Replace simple_strtol by simple_strtoul Zheng Yongjun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.