]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] iop: add missing parens in macro
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 5 May 2007 10:59:13 +0000 (11:59 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 5 May 2007 10:59:13 +0000 (11:59 +0100)
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>
include/asm-arm/hardware/iop3xx.h

index ebbcd9be3fe55eac1a058a41a45c8f5353e730c7..63feceb7ede558afe103496036f46cfb7195924b 100644 (file)
@@ -42,7 +42,7 @@ extern int init_atu;
                                        IOP3XX_PERIPHERAL_SIZE - 1)
 #define IOP3XX_PERIPHERAL_UPPER_VA (IOP3XX_PERIPHERAL_VIRT_BASE +\
                                        IOP3XX_PERIPHERAL_SIZE - 1)
-#define IOP3XX_PMMR_PHYS_TO_VIRT(addr) (u32) ((u32) addr -\
+#define IOP3XX_PMMR_PHYS_TO_VIRT(addr) (u32) ((u32) (addr) -\
                                        (IOP3XX_PERIPHERAL_PHYS_BASE\
                                        - IOP3XX_PERIPHERAL_VIRT_BASE))
 #define IOP3XX_REG_ADDR(reg)           (IOP3XX_PERIPHERAL_VIRT_BASE + (reg))