summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/ptrace_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/ptrace_32.h')
-rw-r--r--arch/sh/include/asm/ptrace_32.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/sh/include/asm/ptrace_32.h b/arch/sh/include/asm/ptrace_32.h
index 6c2239cca1a2..2d3e906aa722 100644
--- a/arch/sh/include/asm/ptrace_32.h
+++ b/arch/sh/include/asm/ptrace_32.h
@@ -76,7 +76,10 @@ struct pt_dspregs {
#ifdef __KERNEL__
#define MAX_REG_OFFSET offsetof(struct pt_regs, tra)
-#define regs_return_value(_regs) ((_regs)->regs[0])
+static inline long regs_return_value(struct pt_regs *regs)
+{
+ return regs->regs[0];
+}
#endif /* __KERNEL__ */