diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2023-01-07 08:30:57 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-01-07 08:33:11 +0100 |
commit | 4414c1f5c7a375eaa108676a56e12cc8234eb647 (patch) | |
tree | 0a28b40ec4f54672318c14dcae739a2c1b166fb2 /arch/xtensa/kernel | |
parent | kcsan: test: don't put the expect array on the stack (diff) | |
download | linux-4414c1f5c7a375eaa108676a56e12cc8234eb647.tar.xz linux-4414c1f5c7a375eaa108676a56e12cc8234eb647.zip |
xtensa: drop unused members of struct thread_struct
bad_vaddr, bad_uaddr and error_code fields are set but never read by the
xtensa arch-specific code. Drop them. Also drop the commented out info
field.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel')
-rw-r--r-- | arch/xtensa/kernel/traps.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c index 0c25e035ff10..cd98366a9b23 100644 --- a/arch/xtensa/kernel/traps.c +++ b/arch/xtensa/kernel/traps.c @@ -362,8 +362,6 @@ static void do_unaligned_user(struct pt_regs *regs) __die_if_kernel("Unhandled unaligned exception in kernel", regs, SIGKILL); - current->thread.bad_vaddr = regs->excvaddr; - current->thread.error_code = -3; pr_info_ratelimited("Unaligned memory access to %08lx in '%s' " "(pid = %d, pc = %#010lx)\n", regs->excvaddr, current->comm, |