The function pointer proc_ops.proc_ioctl requires the use of user_uintptr_t type as argument.
Signed-off-by: Pawel Zalewski pzalewski@thegoodpenguin.co.uk --- drivers/scsi/esas2r/esas2r_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/esas2r/esas2r_main.c b/drivers/scsi/esas2r/esas2r_main.c index 7a4eadad23d7..d689a92c02fa 100644 --- a/drivers/scsi/esas2r/esas2r_main.c +++ b/drivers/scsi/esas2r/esas2r_main.c @@ -626,7 +626,7 @@ static const struct proc_ops esas2r_proc_ops = { static struct Scsi_Host *esas2r_proc_host; static int esas2r_proc_major;
-long esas2r_proc_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) +long esas2r_proc_ioctl(struct file *fp, unsigned int cmd, user_uintptr_t arg) { return esas2r_ioctl_handler(esas2r_proc_host->hostdata, cmd, (void __user *)arg);