]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
arch/x86: replace strict_strto calls
authorDaniel Walter <dwalter@google.com>
Thu, 26 Jun 2014 00:43:15 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 27 Jun 2014 04:21:47 +0000 (14:21 +1000)
Replace obsolete strict_strto calls with appropriate kstrto calls

Signed-off-by: Daniel Walter <dwalter@google.com>
Acked-by: Borislav Petkov <bp@suse.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/cpu/intel_cacheinfo.c
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/mcheck/mce_amd.c
arch/x86/kvm/mmu_audit.c
arch/x86/platform/uv/tlb_uv.c

index a952e9c85b6fad81684c4bd39418bd5623a634ff..4ff210a7694bc98736722e20f403d0f6a42e4210 100644 (file)
@@ -461,7 +461,7 @@ static ssize_t store_cache_disable(struct _cpuid4_info *this_leaf,
 
        cpu = cpumask_first(to_cpumask(this_leaf->shared_cpu_map));
 
-       if (strict_strtoul(buf, 10, &val) < 0)
+       if (kstrtoul(buf, 10, &val) < 0)
                return -EINVAL;
 
        err = amd_set_l3_disable_slot(this_leaf->base.nb, cpu, slot, val);
@@ -511,7 +511,7 @@ store_subcaches(struct _cpuid4_info *this_leaf, const char *buf, size_t count,
        if (!this_leaf->base.nb || !amd_nb_has_feature(AMD_NB_L3_PARTITIONING))
                return -EINVAL;
 
-       if (strict_strtoul(buf, 16, &val) < 0)
+       if (kstrtoul(buf, 16, &val) < 0)
                return -EINVAL;
 
        if (amd_set_subcaches(cpu, val))
index bb92f38153b210a05fc16520e4b0bc44e828537d..a801a3521db6f119aaf82f54c4ee9dffffbd71ea 100644 (file)
@@ -2136,7 +2136,7 @@ static ssize_t set_bank(struct device *s, struct device_attribute *attr,
 {
        u64 new;
 
-       if (strict_strtoull(buf, 0, &new) < 0)
+       if (kstrtou64(buf, 0, &new) < 0)
                return -EINVAL;
 
        attr_to_bank(attr)->ctl = new;
@@ -2174,7 +2174,7 @@ static ssize_t set_ignore_ce(struct device *s,
 {
        u64 new;
 
-       if (strict_strtoull(buf, 0, &new) < 0)
+       if (kstrtou64(buf, 0, &new) < 0)
                return -EINVAL;
 
        if (mca_cfg.ignore_ce ^ !!new) {
@@ -2198,7 +2198,7 @@ static ssize_t set_cmci_disabled(struct device *s,
 {
        u64 new;
 
-       if (strict_strtoull(buf, 0, &new) < 0)
+       if (kstrtou64(buf, 0, &new) < 0)
                return -EINVAL;
 
        if (mca_cfg.cmci_disabled ^ !!new) {
index 603df4f74640c827db1c889f793be31e1f853075..1e49f8f41276edac73dfc8cbea3417693c6aedd2 100644 (file)
@@ -353,7 +353,7 @@ store_interrupt_enable(struct threshold_block *b, const char *buf, size_t size)
        if (!b->interrupt_capable)
                return -EINVAL;
 
-       if (strict_strtoul(buf, 0, &new) < 0)
+       if (kstrtoul(buf, 0, &new) < 0)
                return -EINVAL;
 
        b->interrupt_enable = !!new;
@@ -372,7 +372,7 @@ store_threshold_limit(struct threshold_block *b, const char *buf, size_t size)
        struct thresh_restart tr;
        unsigned long new;
 
-       if (strict_strtoul(buf, 0, &new) < 0)
+       if (kstrtoul(buf, 0, &new) < 0)
                return -EINVAL;
 
        if (new > THRESHOLD_MAX)
index 1185fe7a7f47b053ba3c0fcb1b079d1614581e57..9ade5cfb5a4c26cf9d63f6f59519d50e94b5e2ae 100644 (file)
@@ -273,7 +273,7 @@ static int mmu_audit_set(const char *val, const struct kernel_param *kp)
        int ret;
        unsigned long enable;
 
-       ret = strict_strtoul(val, 10, &enable);
+       ret = kstrtoul(val, 10, &enable);
        if (ret < 0)
                return -EINVAL;
 
index ed161c6e278b06824377f0e9a982a196e92e2e1c..3968d67d366bc714231e2f4b2ba864eada762fe6 100644 (file)
@@ -1479,7 +1479,7 @@ static ssize_t ptc_proc_write(struct file *file, const char __user *user,
                return count;
        }
 
-       if (strict_strtol(optstr, 10, &input_arg) < 0) {
+       if (kstrtol(optstr, 10, &input_arg) < 0) {
                printk(KERN_DEBUG "%s is invalid\n", optstr);
                return -EINVAL;
        }