Skip to contentSkip to conversation

aacraid: remove compiler warning

PATCH New Mark Haverkamp 1 participant 1 message Oct 24, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/5 aacraid: remove compiler warning

Received from Mark Salyzyn.

This patch resolves a compiler warning on 64 bit architectures.

Applies to the scsi-rc-fixes-2.6 git tree.

---

drivers/scsi/aacraid/commctrl.c +2 -2
Index: scsi-rc-aac-1/drivers/scsi/aacraid/commctrl.c
===================================================================
@@ -574,7 +574,7 @@
 				rcode = -ENOMEM;
 				goto cleanup;
 			}
-			sg_user[i] = (void __user *)usg->sg[i].addr;
+			sg_user[i] = (void __user *)(long)usg->sg[i].addr;
 			sg_list[i] = p; // save so we can clean up later
 			sg_indx = i;
 
@@ -624,7 +624,7 @@
 				rcode = -ENOMEM;
 				goto cleanup;
 			}
-			sg_user[i] = (void __user *)upsg->sg[i].addr;
+			sg_user[i] = (void __user *)(long)upsg->sg[i].addr;
 			sg_list[i] = p; // save so we can clean up later
 			sg_indx = i;
 
Signature · 1 line
Mark Haverkamp <[email protected]>