Ack.

--Sumant

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, May 23, 2007 4:12 PM
To: [EMAIL PROTECTED]
Cc: linux-scsi@vger.kernel.org; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [patch 1/1] scsi: cover up bugs^W^W^WFix up compiler warnings
in megaraid driver

From: Martin Bligh <[EMAIL PROTECTED]>

Fix up compiler warnings in megaraid driver

Signed-off-by: Martin J. Bligh <[EMAIL PROTECTED]>
Cc: James Bottomley <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/scsi/megaraid.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff -puN
drivers/scsi/megaraid.c~scsi-cover-up-bugs-fix-up-compiler-warnings-in-m
egaraid-driver drivers/scsi/megaraid.c
---
a/drivers/scsi/megaraid.c~scsi-cover-up-bugs-fix-up-compiler-warnings-in
-megaraid-driver
+++ a/drivers/scsi/megaraid.c
@@ -3571,7 +3571,7 @@ megadev_ioctl(struct inode *inode, struc
                        /*
                         * The user passthru structure
                         */
-                       upthru = (mega_passthru __user
*)MBOX(uioc)->xferaddr;
+                       upthru = (mega_passthru __user *)(unsigned
long)MBOX(uioc)->xferaddr;
 
                        /*
                         * Copy in the user passthru here.
@@ -3623,7 +3623,7 @@ megadev_ioctl(struct inode *inode, struc
                                /*
                                 * Get the user data
                                 */
-                               if( copy_from_user(data, (char __user
*)uxferaddr,
+                               if( copy_from_user(data, (char __user
*)(unsigned long) uxferaddr,
 
pthru->dataxferlen) ) {
                                        rval = (-EFAULT);
                                        goto freemem_and_return;
@@ -3649,7 +3649,7 @@ megadev_ioctl(struct inode *inode, struc
                         * Is data going up-stream
                         */
                        if( pthru->dataxferlen && (uioc.flags & UIOC_RD)
) {
-                               if( copy_to_user((char __user
*)uxferaddr, data,
+                               if( copy_to_user((char __user
*)(unsigned long) uxferaddr, data,
 
pthru->dataxferlen) ) {
                                        rval = (-EFAULT);
                                }
@@ -3702,7 +3702,7 @@ freemem_and_return:
                                /*
                                 * Get the user data
                                 */
-                               if( copy_from_user(data, (char __user
*)uxferaddr,
+                               if( copy_from_user(data, (char __user
*)(unsigned long) uxferaddr,
                                                        uioc.xferlen) )
{
 
                                        pci_free_consistent(pdev,
@@ -3742,7 +3742,7 @@ freemem_and_return:
                         * Is data going up-stream
                         */
                        if( uioc.xferlen && (uioc.flags & UIOC_RD) ) {
-                               if( copy_to_user((char __user
*)uxferaddr, data,
+                               if( copy_to_user((char __user
*)(unsigned long) uxferaddr, data,
                                                        uioc.xferlen) )
{
 
                                        rval = (-EFAULT);
_
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to