]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: zcache: Fix calls to obsolete function
authorBernhard Heinloth <bernhard@heinloth.net>
Wed, 23 Nov 2011 15:39:53 +0000 (16:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 02:13:55 +0000 (18:13 -0800)
Function "strict_strtol" replaced by "kstrtol" as suggested by the checkpatch script

Signed-off-by: Bernhard Heinloth <bernhard@heinloth.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zcache/zcache-main.c

index 56c1f9c80dc14fed040f23b5c471cdf1fe214d00..642840c612ac9a2e179bee7af972b432d0736848 100644 (file)
@@ -787,7 +787,7 @@ static ssize_t zv_max_zsize_store(struct kobject *kobj,
        if (!capable(CAP_SYS_ADMIN))
                return -EPERM;
 
-       err = strict_strtoul(buf, 10, &val);
+       err = kstrtoul(buf, 10, &val);
        if (err || (val == 0) || (val > (PAGE_SIZE / 8) * 7))
                return -EINVAL;
        zv_max_zsize = val;
@@ -819,7 +819,7 @@ static ssize_t zv_max_mean_zsize_store(struct kobject *kobj,
        if (!capable(CAP_SYS_ADMIN))
                return -EPERM;
 
-       err = strict_strtoul(buf, 10, &val);
+       err = kstrtoul(buf, 10, &val);
        if (err || (val == 0) || (val > (PAGE_SIZE / 8) * 7))
                return -EINVAL;
        zv_max_mean_zsize = val;
@@ -853,7 +853,7 @@ static ssize_t zv_page_count_policy_percent_store(struct kobject *kobj,
        if (!capable(CAP_SYS_ADMIN))
                return -EPERM;
 
-       err = strict_strtoul(buf, 10, &val);
+       err = kstrtoul(buf, 10, &val);
        if (err || (val == 0) || (val > 150))
                return -EINVAL;
        zv_page_count_policy_percent = val;