Commit 34da5e6770ac06df770a0355b417155e6e84e263
Committed by
Greg Kroah-Hartman
1 parent
86df268705
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
driver core: replace strict_strto*() with kstrto*()
The usage of strict_strto*() is not preferred, because strict_strto*() is obsolete. Thus, kstrto*() should be used. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 4 changed files with 5 additions and 5 deletions Side-by-side Diff
drivers/base/core.c
drivers/base/memory.c
... | ... | @@ -469,7 +469,7 @@ |
469 | 469 | u64 pfn; |
470 | 470 | if (!capable(CAP_SYS_ADMIN)) |
471 | 471 | return -EPERM; |
472 | - if (strict_strtoull(buf, 0, &pfn) < 0) | |
472 | + if (kstrtoull(buf, 0, &pfn) < 0) | |
473 | 473 | return -EINVAL; |
474 | 474 | pfn >>= PAGE_SHIFT; |
475 | 475 | if (!pfn_valid(pfn)) |
... | ... | @@ -488,7 +488,7 @@ |
488 | 488 | u64 pfn; |
489 | 489 | if (!capable(CAP_SYS_ADMIN)) |
490 | 490 | return -EPERM; |
491 | - if (strict_strtoull(buf, 0, &pfn) < 0) | |
491 | + if (kstrtoull(buf, 0, &pfn) < 0) | |
492 | 492 | return -EINVAL; |
493 | 493 | pfn >>= PAGE_SHIFT; |
494 | 494 | ret = memory_failure(pfn, 0, 0); |
drivers/base/power/sysfs.c
drivers/base/regmap/regmap-debugfs.c
... | ... | @@ -281,7 +281,7 @@ |
281 | 281 | reg = simple_strtoul(start, &start, 16); |
282 | 282 | while (*start == ' ') |
283 | 283 | start++; |
284 | - if (strict_strtoul(start, 16, &value)) | |
284 | + if (kstrtoul(start, 16, &value)) | |
285 | 285 | return -EINVAL; |
286 | 286 | |
287 | 287 | /* Userspace has been fiddling around behind the kernel's back */ |