From: Jingoo Han Date: Wed, 11 Sep 2013 21:20:08 +0000 (-0700) Subject: block/blk-sysfs.c: replace strict_strtoul() with kstrtoul() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ed751e683c563be64322b9bfa0f0f7e5da9bd37c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git block/blk-sysfs.c: replace strict_strtoul() with kstrtoul() The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 5efc5a647183..3aa5b195f4dd 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -29,7 +29,7 @@ queue_var_store(unsigned long *var, const char *page, size_t count) int err; unsigned long v; - err = strict_strtoul(page, 10, &v); + err = kstrtoul(page, 10, &v); if (err || v > UINT_MAX) return -EINVAL;