This attached patch is against current scsi-misc-2.6.ObligatoryDisclaimer: Please accept my condolences regarding Outlook's handling of patch attachments (inline gets damaged, please use attachment).
Signed-off-by: Mark Salyzyn <aacraid@xxxxxxxxxxx> drivers/scsi/aacraid/aacraid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)diff -ru a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/ aacraid.h
--- a/drivers/scsi/aacraid/aacraid.h 2008-04-30 15:17:53.770782679 -0400 +++ b/drivers/scsi/aacraid/aacraid.h 2008-04-30 15:22:14.338590856 -0400 @@ -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 */ Sincerely - Mark Salyzyn
Attachment:
aacraid_side_effects.patch
Description: Binary data