From b236dd748c17598d9a6a2c29cf265fd244dd97b8 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Fri, 7 Jun 2002 21:24:30 +0000 Subject: [PATCH] Protect the GETBUFPTR and GETBUFADDR macros with parenthesis so that they retain their functionality when used in expressions or comparisons. --- linux/mach64_drv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/mach64_drv.h b/linux/mach64_drv.h index 935a8431..cf48c7aa 100644 --- a/linux/mach64_drv.h +++ b/linux/mach64_drv.h @@ -640,10 +640,10 @@ do { \ #define DMALOCALS drm_buf_t *buf = NULL; u32 *p; int outcount = 0 #define GETBUFPTR( _buf ) \ -(dev_priv->is_pci) ? ((u32 *)(_buf)->address) : ((u32 *)((char *)dev_priv->buffers->handle + (_buf)->offset)) +((dev_priv->is_pci) ? ((u32 *)(_buf)->address) : ((u32 *)((char *)dev_priv->buffers->handle + (_buf)->offset))) #define GETBUFADDR( _buf ) \ -(dev_priv->is_pci) ? ((u32)virt_to_bus((void *)(_buf)->address)) : ((u32)(_buf)->bus_address) +((dev_priv->is_pci) ? ((u32)virt_to_bus((void *)(_buf)->address)) : ((u32)(_buf)->bus_address)) /* FIXME: use a private set of smaller buffers for state emits, clears, and swaps? */ #define DMAGETPTR( dev_priv, n ) \