Commit 1618bd53 authored by Daniel Walter's avatar Daniel Walter Committed by Linus Torvalds

arch/powerpc: replace obsolete strict_strto* calls

Replace strict_strto calls with more appropriate kstrto calls
Signed-off-by: default avatarDaniel Walter <dwalter@google.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 37028623
...@@ -149,13 +149,13 @@ static void check_smt_enabled(void) ...@@ -149,13 +149,13 @@ static void check_smt_enabled(void)
else if (!strcmp(smt_enabled_cmdline, "off")) else if (!strcmp(smt_enabled_cmdline, "off"))
smt_enabled_at_boot = 0; smt_enabled_at_boot = 0;
else { else {
long smt; int smt;
int rc; int rc;
rc = strict_strtol(smt_enabled_cmdline, 10, &smt); rc = kstrtoint(smt_enabled_cmdline, 10, &smt);
if (!rc) if (!rc)
smt_enabled_at_boot = smt_enabled_at_boot =
min(threads_per_core, (int)smt); min(threads_per_core, smt);
} }
} else { } else {
dn = of_find_node_by_path("/options"); dn = of_find_node_by_path("/options");
......
...@@ -977,7 +977,7 @@ static ssize_t viodev_cmo_desired_set(struct device *dev, ...@@ -977,7 +977,7 @@ static ssize_t viodev_cmo_desired_set(struct device *dev,
size_t new_desired; size_t new_desired;
int ret; int ret;
ret = strict_strtoul(buf, 10, &new_desired); ret = kstrtoul(buf, 10, &new_desired);
if (ret) if (ret)
return ret; return ret;
......
...@@ -400,10 +400,10 @@ static int dlpar_online_cpu(struct device_node *dn) ...@@ -400,10 +400,10 @@ static int dlpar_online_cpu(struct device_node *dn)
static ssize_t dlpar_cpu_probe(const char *buf, size_t count) static ssize_t dlpar_cpu_probe(const char *buf, size_t count)
{ {
struct device_node *dn, *parent; struct device_node *dn, *parent;
unsigned long drc_index; u32 drc_index;
int rc; int rc;
rc = strict_strtoul(buf, 0, &drc_index); rc = kstrtou32(buf, 0, &drc_index);
if (rc) if (rc)
return -EINVAL; return -EINVAL;
......
...@@ -320,7 +320,7 @@ static ssize_t migrate_store(struct class *class, struct class_attribute *attr, ...@@ -320,7 +320,7 @@ static ssize_t migrate_store(struct class *class, struct class_attribute *attr,
u64 streamid; u64 streamid;
int rc; int rc;
rc = strict_strtoull(buf, 0, &streamid); rc = kstrtou64(buf, 0, &streamid);
if (rc) if (rc)
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment