aacraid: remove compiler warning
Subsystems (2)
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.
Signed-off-by Mark Haverkamp <[email protected]>
---
drivers/scsi/aacraid/commctrl.c +2 -2
@@ -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]>