[ARM] integrator: parenthesize __virt_to_bus/__bus_to_virt argument
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 30 Nov 2008 11:44:11 +0000 (11:44 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 30 Nov 2008 11:44:11 +0000 (11:44 +0000)
Macro arguments should be parenthesized to avoid unexpected side
effects.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-integrator/include/mach/memory.h

index 30d41d0e7d044ba23edea41380df46980b8839b0..2b2e7a110724b12aa0f8c07a576e4474a2ca8603 100644 (file)
@@ -26,7 +26,7 @@
 #define PHYS_OFFSET    UL(0x00000000)
 
 #define BUS_OFFSET     UL(0x80000000)
-#define __virt_to_bus(x)       (x - PAGE_OFFSET + BUS_OFFSET)
-#define __bus_to_virt(x)       (x - BUS_OFFSET + PAGE_OFFSET)
+#define __virt_to_bus(x)       ((x) - PAGE_OFFSET + BUS_OFFSET)
+#define __bus_to_virt(x)       ((x) - BUS_OFFSET + PAGE_OFFSET)
 
 #endif