Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebadb730 authored by Bernhard Heinloth's avatar Bernhard Heinloth Committed by Greg Kroah-Hartman
Browse files

Staging: zcache: Fix calls to obsolete function



Function "strict_strtol" replaced by "kstrtol" as suggested by the checkpatch script

Signed-off-by: default avatarBernhard Heinloth <bernhard@heinloth.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a75311dc
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -787,7 +787,7 @@ static ssize_t zv_max_zsize_store(struct kobject *kobj,
	if (!capable(CAP_SYS_ADMIN))
	if (!capable(CAP_SYS_ADMIN))
		return -EPERM;
		return -EPERM;


	err = strict_strtoul(buf, 10, &val);
	err = kstrtoul(buf, 10, &val);
	if (err || (val == 0) || (val > (PAGE_SIZE / 8) * 7))
	if (err || (val == 0) || (val > (PAGE_SIZE / 8) * 7))
		return -EINVAL;
		return -EINVAL;
	zv_max_zsize = val;
	zv_max_zsize = val;
@@ -819,7 +819,7 @@ static ssize_t zv_max_mean_zsize_store(struct kobject *kobj,
	if (!capable(CAP_SYS_ADMIN))
	if (!capable(CAP_SYS_ADMIN))
		return -EPERM;
		return -EPERM;


	err = strict_strtoul(buf, 10, &val);
	err = kstrtoul(buf, 10, &val);
	if (err || (val == 0) || (val > (PAGE_SIZE / 8) * 7))
	if (err || (val == 0) || (val > (PAGE_SIZE / 8) * 7))
		return -EINVAL;
		return -EINVAL;
	zv_max_mean_zsize = val;
	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))
	if (!capable(CAP_SYS_ADMIN))
		return -EPERM;
		return -EPERM;


	err = strict_strtoul(buf, 10, &val);
	err = kstrtoul(buf, 10, &val);
	if (err || (val == 0) || (val > 150))
	if (err || (val == 0) || (val > 150))
		return -EINVAL;
		return -EINVAL;
	zv_page_count_policy_percent = val;
	zv_page_count_policy_percent = val;