[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 <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Russell King 2008-11-30 11:44:11 +00:00 committed by Russell King
parent 74343ee4cd
commit cd32a48dc5
1 changed files with 2 additions and 2 deletions

View 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