提交 cd32a48d 编写于 作者: R Russell King 提交者: Russell King

[ARM] integrator: parenthesize __virt_to_bus/__bus_to_virt argument

Macro arguments should be parenthesized to avoid unexpected side
effects.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 74343ee4
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册