Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] iop: add missing parens in macro

Fix:

drivers/serial/8250.c:1837: warning: suggest parentheses around arithmetic in operand of |

due to a macro argument being used without required parenthesis.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Russell King and committed by
Russell King
ad902cb9 d2dd8b1f

+1 -1
+1 -1
include/asm-arm/hardware/iop3xx.h
··· 42 42 IOP3XX_PERIPHERAL_SIZE - 1) 43 43 #define IOP3XX_PERIPHERAL_UPPER_VA (IOP3XX_PERIPHERAL_VIRT_BASE +\ 44 44 IOP3XX_PERIPHERAL_SIZE - 1) 45 - #define IOP3XX_PMMR_PHYS_TO_VIRT(addr) (u32) ((u32) addr -\ 45 + #define IOP3XX_PMMR_PHYS_TO_VIRT(addr) (u32) ((u32) (addr) -\ 46 46 (IOP3XX_PERIPHERAL_PHYS_BASE\ 47 47 - IOP3XX_PERIPHERAL_VIRT_BASE)) 48 48 #define IOP3XX_REG_ADDR(reg) (IOP3XX_PERIPHERAL_VIRT_BASE + (reg))