diff options
author | Michael Neuling <mikey@neuling.org> | 2009-04-29 16:58:01 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-05-21 01:44:21 -0400 |
commit | da6b43c833f885d8604aee7f9711bb457a40d863 (patch) | |
tree | 414d69c4c655b03d3e3cb8c09a0202287ae10b7a /arch/powerpc/include/asm/ppc-opcode.h | |
parent | d89ebca2248ab03a5928e7dd30b6c304283fc207 (diff) |
powerpc: Cleanup macros in ppc-opcode.h
Make macros more braces happy.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/ppc-opcode.h')
-rw-r--r-- | arch/powerpc/include/asm/ppc-opcode.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index 640ccbbc0977..1c819501de22 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc/include/asm/ppc-opcode.h | |||
@@ -47,10 +47,10 @@ | |||
47 | #define PPC_INST_WAIT 0x7c00007c | 47 | #define PPC_INST_WAIT 0x7c00007c |
48 | 48 | ||
49 | /* macros to insert fields into opcodes */ | 49 | /* macros to insert fields into opcodes */ |
50 | #define __PPC_RA(a) ((a & 0x1f) << 16) | 50 | #define __PPC_RA(a) (((a) & 0x1f) << 16) |
51 | #define __PPC_RB(b) ((b & 0x1f) << 11) | 51 | #define __PPC_RB(b) (((b) & 0x1f) << 11) |
52 | #define __PPC_T_TLB(t) ((t & 0x3) << 21) | 52 | #define __PPC_T_TLB(t) (((t) & 0x3) << 21) |
53 | #define __PPC_WC(w) ((w & 0x3) << 21) | 53 | #define __PPC_WC(w) (((w) & 0x3) << 21) |
54 | 54 | ||
55 | /* Deal with instructions that older assemblers aren't aware of */ | 55 | /* Deal with instructions that older assemblers aren't aware of */ |
56 | #define PPC_DCBAL(a, b) stringify_in_c(.long PPC_INST_DCBAL | \ | 56 | #define PPC_DCBAL(a, b) stringify_in_c(.long PPC_INST_DCBAL | \ |