summaryrefslogtreecommitdiffstats
path: root/arch/tile/kernel/traps.c
diff options
context:
space:
mode:
authorDaniel Walter <dwalter@google.com>2014-05-26 22:59:32 +0100
committerChris Metcalf <cmetcalf@tilera.com>2014-05-28 15:47:16 -0400
commitb2dfa048bae3b4afe1944237c1ee9525df00bb6f (patch)
treeda24a40aece892980fad9aa2d4aec3aff9e61377 /arch/tile/kernel/traps.c
parentba159fd387a4d47bb41ddc3b06bfc28f33e8d936 (diff)
downloadop-kernel-dev-b2dfa048bae3b4afe1944237c1ee9525df00bb6f.zip
op-kernel-dev-b2dfa048bae3b4afe1944237c1ee9525df00bb6f.tar.gz
replace strict_strto* call with kstrto*
remove obsolete calls to strict_strto* and replace them with kstrto* calls accordingly. Signed-off-by: Daniel Walter <dwalter@google.com> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/traps.c')
-rw-r--r--arch/tile/kernel/traps.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/tile/kernel/traps.c b/arch/tile/kernel/traps.c
index 6b603d5..f3ceb63 100644
--- a/arch/tile/kernel/traps.c
+++ b/arch/tile/kernel/traps.c
@@ -42,10 +42,9 @@ static int __init setup_unaligned_fixup(char *str)
* will still parse the instruction, then fire a SIGBUS with
* the correct address from inside the single_step code.
*/
- long val;
- if (strict_strtol(str, 0, &val) != 0)
+ if (kstrtoint(str, 0, &unaligned_fixup) != 0)
return 0;
- unaligned_fixup = val;
+
pr_info("Fixups for unaligned data accesses are %s\n",
unaligned_fixup >= 0 ?
(unaligned_fixup ? "enabled" : "disabled") :
OpenPOWER on IntegriCloud