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:
parent
6df46865ff
commit
3dbb95f789
5 changed files with 14 additions and 14 deletions
|
@ -4420,7 +4420,7 @@ static ssize_t order_store(struct kmem_cache *s,
|
|||
unsigned long order;
|
||||
int err;
|
||||
|
||||
err = strict_strtoul(buf, 10, &order);
|
||||
err = kstrtoul(buf, 10, &order);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -4448,7 +4448,7 @@ static ssize_t min_partial_store(struct kmem_cache *s, const char *buf,
|
|||
unsigned long min;
|
||||
int err;
|
||||
|
||||
err = strict_strtoul(buf, 10, &min);
|
||||
err = kstrtoul(buf, 10, &min);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -4468,7 +4468,7 @@ static ssize_t cpu_partial_store(struct kmem_cache *s, const char *buf,
|
|||
unsigned long objects;
|
||||
int err;
|
||||
|
||||
err = strict_strtoul(buf, 10, &objects);
|
||||
err = kstrtoul(buf, 10, &objects);
|
||||
if (err)
|
||||
return err;
|
||||
if (objects && !kmem_cache_has_cpu_partial(s))
|
||||
|
@ -4784,7 +4784,7 @@ static ssize_t remote_node_defrag_ratio_store(struct kmem_cache *s,
|
|||
unsigned long ratio;
|
||||
int err;
|
||||
|
||||
err = strict_strtoul(buf, 10, &ratio);
|
||||
err = kstrtoul(buf, 10, &ratio);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue