summaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/ptrace_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/ptrace_64.h')
-rw-r--r--arch/sh/include/asm/ptrace_64.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/sh/include/asm/ptrace_64.h b/arch/sh/include/asm/ptrace_64.h
index bf9be7764d69..eb3fcceaf64b 100644
--- a/arch/sh/include/asm/ptrace_64.h
+++ b/arch/sh/include/asm/ptrace_64.h
@@ -13,7 +13,10 @@ struct pt_regs {
#ifdef __KERNEL__
#define MAX_REG_OFFSET offsetof(struct pt_regs, tregs[7])
-#define regs_return_value(_regs) ((_regs)->regs[3])
+static inline long regs_return_value(struct pt_regs *regs)
+{
+ return regs->regs[3];
+}
#endif /* __KERNEL__ */