[ARM] Fix iop3xx macro
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 1 Nov 2007 21:27:59 +0000 (21:27 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 5 Nov 2007 09:40:27 +0000 (09:40 +0000)
Macro arguments used in expressions should have parens.  This avoids
warnings such as:

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

Acked-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/hardware/iop3xx.h

index fb90b421f31c94d5c771255bdc429abd5aca0409..ede377ec91470e11472c1059b7dc55c790b28074 100644 (file)
@@ -231,7 +231,7 @@ extern int init_atu;
                                        IOP3XX_PCI_IO_WINDOW_SIZE - 1)
 #define IOP3XX_PCI_UPPER_IO_VA         (IOP3XX_PCI_LOWER_IO_VA +\
                                        IOP3XX_PCI_IO_WINDOW_SIZE - 1)
-#define IOP3XX_PCI_IO_PHYS_TO_VIRT(addr) (((u32) addr -\
+#define IOP3XX_PCI_IO_PHYS_TO_VIRT(addr) (((u32) (addr) -\
                                        IOP3XX_PCI_LOWER_IO_PA) +\
                                        IOP3XX_PCI_LOWER_IO_VA)