EDAC: Replace strict_strtoul() with kstrtoul()
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Borislav Petkov <bp@suse.de>
This commit is contained in:

committed by
Borislav Petkov

parent
d683b96b07
commit
c7f62fc87b
@@ -24,7 +24,7 @@ static ssize_t amd64_inject_section_store(struct device *dev,
|
||||
unsigned long value;
|
||||
int ret;
|
||||
|
||||
ret = strict_strtoul(data, 10, &value);
|
||||
ret = kstrtoul(data, 10, &value);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@@ -61,7 +61,7 @@ static ssize_t amd64_inject_word_store(struct device *dev,
|
||||
unsigned long value;
|
||||
int ret;
|
||||
|
||||
ret = strict_strtoul(data, 10, &value);
|
||||
ret = kstrtoul(data, 10, &value);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@@ -97,7 +97,7 @@ static ssize_t amd64_inject_ecc_vector_store(struct device *dev,
|
||||
unsigned long value;
|
||||
int ret;
|
||||
|
||||
ret = strict_strtoul(data, 16, &value);
|
||||
ret = kstrtoul(data, 16, &value);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@@ -124,7 +124,7 @@ static ssize_t amd64_inject_read_store(struct device *dev,
|
||||
u32 section, word_bits;
|
||||
int ret;
|
||||
|
||||
ret = strict_strtoul(data, 10, &value);
|
||||
ret = kstrtoul(data, 10, &value);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@@ -157,7 +157,7 @@ static ssize_t amd64_inject_write_store(struct device *dev,
|
||||
unsigned long value;
|
||||
int ret;
|
||||
|
||||
ret = strict_strtoul(data, 10, &value);
|
||||
ret = kstrtoul(data, 10, &value);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
Reference in New Issue
Block a user