aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/kernel/traps.c
diff options
context:
space:
mode:
authorDaniel Walter <dwalter@google.com>2014-05-26 17:59:32 -0400
committerChris Metcalf <cmetcalf@tilera.com>2014-05-28 15:47:16 -0400
commitb2dfa048bae3b4afe1944237c1ee9525df00bb6f (patch)
treeda24a40aece892980fad9aa2d4aec3aff9e61377 /arch/tile/kernel/traps.c
parentba159fd387a4d47bb41ddc3b06bfc28f33e8d936 (diff)
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 6b603d556ca6..f3ceb6308e42 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)
42 * will still parse the instruction, then fire a SIGBUS with 42 * will still parse the instruction, then fire a SIGBUS with
43 * the correct address from inside the single_step code. 43 * the correct address from inside the single_step code.
44 */ 44 */
45 long val; 45 if (kstrtoint(str, 0, &unaligned_fixup) != 0)
46 if (strict_strtol(str, 0, &val) != 0)
47 return 0; 46 return 0;
48 unaligned_fixup = val; 47
49 pr_info("Fixups for unaligned data accesses are %s\n", 48 pr_info("Fixups for unaligned data accesses are %s\n",
50 unaligned_fixup >= 0 ? 49 unaligned_fixup >= 0 ?
51 (unaligned_fixup ? "enabled" : "disabled") : 50 (unaligned_fixup ? "enabled" : "disabled") :