From: Mark Salyzyn Date: Wed, 30 Apr 2008 19:28:32 +0000 (-0400) Subject: [SCSI] aacraid: Fix warning about macro side-effects X-Git-Tag: v2.6.26-rc1~9^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e2efe7aa24dc7b430d2ea109fa117bd3c60ae8e6;p=linux-2.6-omap-h63xx.git [SCSI] aacraid: Fix warning about macro side-effects On some compile environments, warnings are produced regarding the usage of aac_logical_to_phys macro. Signed-off-by: Mark Salyzyn Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h index 113ca9c8934..a990e5b088c 100644 --- a/drivers/scsi/aacraid/aacraid.h +++ b/drivers/scsi/aacraid/aacraid.h @@ -34,8 +34,8 @@ #define CONTAINER_TO_ID(cont) (cont) #define CONTAINER_TO_LUN(cont) (0) -#define aac_phys_to_logical(x) (x+1) -#define aac_logical_to_phys(x) (x?x-1:0) +#define aac_phys_to_logical(x) ((x)+1) +#define aac_logical_to_phys(x) ((x)?(x)-1:0) /* #define AAC_DETAILED_STATUS_INFO */