Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xtensa: fix unaligned usermode access

- correct use of .config #define name;
CONFIG_UNALIGNED_USER ---> CONFIG_XTENSA_UNALIGNED_USER

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Pete Delaney <piet@tensilica.com>
Signed-off-by: Chris Zankel <chris@zankel.net>

authored by

Max Filippov and committed by
Chris Zankel
4ded6282 bc5378fc

+2 -2
+2 -2
arch/xtensa/kernel/traps.c
··· 97 97 /* EXCCAUSE_INTEGER_DIVIDE_BY_ZERO unhandled */ 98 98 /* EXCCAUSE_PRIVILEGED unhandled */ 99 99 #if XCHAL_UNALIGNED_LOAD_EXCEPTION || XCHAL_UNALIGNED_STORE_EXCEPTION 100 - #ifdef CONFIG_UNALIGNED_USER 100 + #ifdef CONFIG_XTENSA_UNALIGNED_USER 101 101 { EXCCAUSE_UNALIGNED, USER, fast_unaligned }, 102 102 #else 103 103 { EXCCAUSE_UNALIGNED, 0, do_unaligned_user }, ··· 244 244 */ 245 245 246 246 #if XCHAL_UNALIGNED_LOAD_EXCEPTION || XCHAL_UNALIGNED_STORE_EXCEPTION 247 - #ifndef CONFIG_UNALIGNED_USER 247 + #ifndef CONFIG_XTENSA_UNALIGNED_USER 248 248 void 249 249 do_unaligned_user (struct pt_regs *regs) 250 250 {