Commit 04e7bbad authored by Sergey Datsevich's avatar Sergey Datsevich Committed by Greg Kroah-Hartman

Staging: zram/zram_sysfs.c: Fixed call of obsolete function strict_strtoX

As reported by checkpatch.pl strict_strtoX is obsolet and should be
replaced by kstrtoX.
Signed-off-by: default avatarSergey Datsevich <srgdts@gmail.com>
Signed-off-by: default avatarBjoern Meier <bjoernmeier@hotmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6e8087a4
...@@ -58,7 +58,7 @@ static ssize_t disksize_store(struct device *dev, ...@@ -58,7 +58,7 @@ static ssize_t disksize_store(struct device *dev,
u64 disksize; u64 disksize;
struct zram *zram = dev_to_zram(dev); struct zram *zram = dev_to_zram(dev);
ret = strict_strtoull(buf, 10, &disksize); ret = kstrtoull(buf, 10, &disksize);
if (ret) if (ret)
return ret; return ret;
...@@ -88,7 +88,7 @@ static ssize_t reset_store(struct device *dev, ...@@ -88,7 +88,7 @@ static ssize_t reset_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t len) struct device_attribute *attr, const char *buf, size_t len)
{ {
int ret; int ret;
unsigned long do_reset; unsigned short do_reset;
struct zram *zram; struct zram *zram;
struct block_device *bdev; struct block_device *bdev;
...@@ -99,7 +99,7 @@ static ssize_t reset_store(struct device *dev, ...@@ -99,7 +99,7 @@ static ssize_t reset_store(struct device *dev,
if (bdev->bd_holders) if (bdev->bd_holders)
return -EBUSY; return -EBUSY;
ret = strict_strtoul(buf, 10, &do_reset); ret = kstrtou16(buf, 10, &do_reset);
if (ret) if (ret)
return ret; return ret;
......
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