projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83b4b0b
)
memtest: use kstrtouint instead of simple_strtoul
author
Vladimir Murzin
<
[email protected]
>
Tue, 8 Sep 2015 22:00:16 +0000
(15:00 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 8 Sep 2015 22:35:28 +0000
(15:35 -0700)
Since simple_strtoul is obsolete and memtest_pattern is type of int, use
kstrtouint instead.
Signed-off-by: Vladimir Murzin <
[email protected]
>
Cc: Leon Romanovsky <
[email protected]
>
Acked-by: David Rientjes <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memtest.c
patch
|
blob
|
history
diff --git
a/mm/memtest.c
b/mm/memtest.c
index 0a1cc133f6d72af96a7e16df6481c821dd907a03..20e836138e00300df7b33d4861384e808082daab 100644
(file)
--- a/
mm/memtest.c
+++ b/
mm/memtest.c
@@
-89,16
+89,18
@@
static void __init do_one_pass(u64 pattern, phys_addr_t start, phys_addr_t end)
}
/* default is disabled */
-static int memtest_pattern __initdata;
+static
unsigned
int memtest_pattern __initdata;
static int __init parse_memtest(char *arg)
{
+ int ret = 0;
+
if (arg)
-
memtest_pattern = simple_strtoul(arg, NULL, 0
);
+
ret = kstrtouint(arg, 0, &memtest_pattern
);
else
memtest_pattern = ARRAY_SIZE(patterns);
- return
0
;
+ return
ret
;
}
early_param("memtest", parse_memtest);