diff options
author | Vineet Gupta <vgupta@kernel.org> | 2020-05-21 17:44:32 -0700 |
---|---|---|
committer | Vineet Gupta <vgupta@kernel.org> | 2023-08-18 10:30:47 -0700 |
commit | 58d9ceb7d9f56bd74b8e904e26511d27a4220827 (patch) | |
tree | 51b4c2267c5009b4edd694f008e03fa7140e164c /arch/arc/kernel/traps.c | |
parent | d4624bf6a6c9d9ff084eb2cba6d3cf6aeda9f974 (diff) |
ARC: pt_regs: create seperate type for ecr
Reduces duplication in each ISA specific pt_regs
Tested-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308151342.ROQ9Urvv-lkp@intel.com
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc/kernel/traps.c')
-rw-r--r-- | arch/arc/kernel/traps.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arc/kernel/traps.c b/arch/arc/kernel/traps.c index 2f7eb786695b..9b9570b79362 100644 --- a/arch/arc/kernel/traps.c +++ b/arch/arc/kernel/traps.c @@ -110,9 +110,7 @@ void do_machine_check_fault(unsigned long address, struct pt_regs *regs) */ void do_non_swi_trap(unsigned long address, struct pt_regs *regs) { - unsigned int param = regs->ecr_param; - - switch (param) { + switch (regs->ecr.param) { case 1: trap_is_brkpt(address, regs); break; |