Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: replace strict_strtoul() with kstrtoul()

The use of strict_strtoul() is not preferred, because strict_strtoul() is
obsolete. Thus, kstrtoul() should be used.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jingoo Han and committed by
Linus Torvalds
bb8e0e84 e1403b8e

+3 -3
+1 -1
drivers/block/osdblk.c
··· 598 598 unsigned long ul; 599 599 struct list_head *tmp; 600 600 601 - rc = strict_strtoul(buf, 10, &ul); 601 + rc = kstrtoul(buf, 10, &ul); 602 602 if (rc) 603 603 return rc; 604 604
+1 -1
drivers/block/rbd.c
··· 5132 5132 bool already = false; 5133 5133 int ret; 5134 5134 5135 - ret = strict_strtoul(buf, 10, &ul); 5135 + ret = kstrtoul(buf, 10, &ul); 5136 5136 if (ret) 5137 5137 return ret; 5138 5138
+1 -1
drivers/block/xen-blkback/xenbus.c
··· 620 620 } 621 621 622 622 /* Front end dir is a number, which is used as the handle. */ 623 - err = strict_strtoul(strrchr(dev->otherend, '/') + 1, 0, &handle); 623 + err = kstrtoul(strrchr(dev->otherend, '/') + 1, 0, &handle); 624 624 if (err) 625 625 return; 626 626