mm: 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>
This commit is contained in:

committed by
Linus Torvalds

parent
6df46865ff
commit
3dbb95f789
@@ -1526,7 +1526,7 @@ static ssize_t nr_hugepages_store_common(bool obey_mempolicy,
|
||||
struct hstate *h;
|
||||
NODEMASK_ALLOC(nodemask_t, nodes_allowed, GFP_KERNEL | __GFP_NORETRY);
|
||||
|
||||
err = strict_strtoul(buf, 10, &count);
|
||||
err = kstrtoul(buf, 10, &count);
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
@@ -1617,7 +1617,7 @@ static ssize_t nr_overcommit_hugepages_store(struct kobject *kobj,
|
||||
if (h->order >= MAX_ORDER)
|
||||
return -EINVAL;
|
||||
|
||||
err = strict_strtoul(buf, 10, &input);
|
||||
err = kstrtoul(buf, 10, &input);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
Reference in New Issue
Block a user