aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/ptrace_64.h
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2011-01-01 13:36:36 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-01-05 02:58:19 -0500
commiteac676e531214f1e276645613acae7d7c4529035 (patch)
treece1272ecf43494d7bf796b1083c98f5696d7af05 /arch/sh/include/asm/ptrace_64.h
parent1dee92bba36b491dbcc15e2cba40501403237f96 (diff)
sh: correct definitions to access stack pointers
A definition like: #define regs_return_value(regs) ((regs)->regs[0]) called with regs_return_value(foo) will be preprocessed to: ((foo)->foo[0]) ^^^ So to fix this to ensure the preprocessor compiles such calls correctly. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/ptrace_64.h')
-rw-r--r--arch/sh/include/asm/ptrace_64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/asm/ptrace_64.h b/arch/sh/include/asm/ptrace_64.h
index d43c1cb0bbe..bf9be7764d6 100644
--- a/arch/sh/include/asm/ptrace_64.h
+++ b/arch/sh/include/asm/ptrace_64.h
@@ -13,7 +13,7 @@ struct pt_regs {
13#ifdef __KERNEL__ 13#ifdef __KERNEL__
14 14
15#define MAX_REG_OFFSET offsetof(struct pt_regs, tregs[7]) 15#define MAX_REG_OFFSET offsetof(struct pt_regs, tregs[7])
16#define regs_return_value(regs) ((regs)->regs[3]) 16#define regs_return_value(_regs) ((_regs)->regs[3])
17 17
18#endif /* __KERNEL__ */ 18#endif /* __KERNEL__ */
19 19