diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2015-09-29 06:35:48 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-10-17 08:18:24 -0400 |
commit | 5c35ee642a1d1341b225808b53fc69df2245b87e (patch) | |
tree | 7d570d8798c274230323335026114401daa374bc | |
parent | 9fabcc636bf57dcb9c6fc5b1f34861c548944fd4 (diff) |
ARC: make write_aux_reg safer against macro substitution
It was generating warnings when called as write_aux_reg(x, paddr >> 32)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/include/asm/arcregs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h index d8023bc8d1ad..431e82893fc8 100644 --- a/arch/arc/include/asm/arcregs.h +++ b/arch/arc/include/asm/arcregs.h | |||
@@ -120,7 +120,7 @@ | |||
120 | 120 | ||
121 | /* gcc builtin sr needs reg param to be long immediate */ | 121 | /* gcc builtin sr needs reg param to be long immediate */ |
122 | #define write_aux_reg(reg_immed, val) \ | 122 | #define write_aux_reg(reg_immed, val) \ |
123 | __builtin_arc_sr((unsigned int)val, reg_immed) | 123 | __builtin_arc_sr((unsigned int)(val), reg_immed) |
124 | 124 | ||
125 | #else | 125 | #else |
126 | 126 | ||