sh: correct definitions to access stack pointers
authorRoel Kluin <roel.kluin@gmail.com>
Sat, 1 Jan 2011 18:36:36 +0000 (18:36 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 5 Jan 2011 07:58:19 +0000 (16:58 +0900)
commiteac676e531214f1e276645613acae7d7c4529035
treece1272ecf43494d7bf796b1083c98f5696d7af05
parent1dee92bba36b491dbcc15e2cba40501403237f96
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>
arch/sh/include/asm/ptrace.h
arch/sh/include/asm/ptrace_32.h
arch/sh/include/asm/ptrace_64.h