sysctl_hung_task_panic has been changed to unsigned int.
use kstrtouint instead of obsolete simple_strtoul

Inspired-By: Andrew Morton <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Fabian Frederick <[email protected]>
---
 kernel/hung_task.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/kernel/hung_task.c b/kernel/hung_task.c
index 06bb141..06db124 100644
--- a/kernel/hung_task.c
+++ b/kernel/hung_task.c
@@ -52,8 +52,10 @@ unsigned int __read_mostly sysctl_hung_task_panic =
 
 static int __init hung_task_panic_setup(char *str)
 {
-       sysctl_hung_task_panic = simple_strtoul(str, NULL, 0);
+       int rc = kstrtouint(str, 0, &sysctl_hung_task_panic);
 
+       if (rc)
+               return rc;
        return 1;
 }
 __setup("hung_task_panic=", hung_task_panic_setup);
-- 
1.8.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to