From: Russell King Date: Sun, 30 Nov 2008 11:44:11 +0000 (+0000) Subject: [ARM] integrator: parenthesize __virt_to_bus/__bus_to_virt argument X-Git-Tag: v2.6.29-rc1~559^2~54 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cd32a48dc5c2f415790bfbc4fe564b2b0e9c2414;p=linux-2.6-omap-h63xx.git [ARM] integrator: parenthesize __virt_to_bus/__bus_to_virt argument Macro arguments should be parenthesized to avoid unexpected side effects. Signed-off-by: Russell King --- diff --git a/arch/arm/mach-integrator/include/mach/memory.h b/arch/arm/mach-integrator/include/mach/memory.h index 30d41d0e7d0..2b2e7a11072 100644 --- a/arch/arm/mach-integrator/include/mach/memory.h +++ b/arch/arm/mach-integrator/include/mach/memory.h @@ -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