summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/traps.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-04-15 11:14:40 +0200
committerPalmer Dabbelt <palmer@sifive.com>2019-04-25 14:51:11 -0700
commit6ab77af4b0ee09b58ace90aeb9b1b84f4605b859 (patch)
tree0965302ff07917cfc8ba31698dc4c4488e901e6b /arch/riscv/kernel/traps.c
parent877425424d6c853b804e6b6a6045a5b4ea97c510 (diff)
downloadlwn-6ab77af4b0ee09b58ace90aeb9b1b84f4605b859.tar.gz
lwn-6ab77af4b0ee09b58ace90aeb9b1b84f4605b859.zip
riscv: remove duplicate macros from ptrace.h
No need to have two names for the same thing. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/kernel/traps.c')
-rw-r--r--arch/riscv/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/traps.c b/arch/riscv/kernel/traps.c
index 24a9333dda2c..86731a2fa218 100644
--- a/arch/riscv/kernel/traps.c
+++ b/arch/riscv/kernel/traps.c
@@ -70,7 +70,7 @@ void do_trap(struct pt_regs *regs, int signo, int code,
&& printk_ratelimit()) {
pr_info("%s[%d]: unhandled signal %d code 0x%x at 0x" REG_FMT,
tsk->comm, task_pid_nr(tsk), signo, code, addr);
- print_vma_addr(KERN_CONT " in ", GET_IP(regs));
+ print_vma_addr(KERN_CONT " in ", instruction_pointer(regs));
pr_cont("\n");
show_regs(regs);
}