From: Dan Carpenter Date: Fri, 6 Jul 2012 08:21:49 +0000 (+0300) Subject: Staging: vme: silence a Sparse warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7f3943cd055f73e82e1b57468286f3d7cf9fb27;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Staging: vme: silence a Sparse warning Sparse complains that "arg" is not a __user pointer. The "argp" and "arg" variables are equivalent but argp is declared as a __user pointer. Signed-off-by: Dan Carpenter Acked-By: Martyn Welch Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index e24a6f95db12..0c2479e41938 100644 --- a/drivers/staging/vme/devices/vme_user.c +++ b/drivers/staging/vme/devices/vme_user.c @@ -474,7 +474,7 @@ static int vme_user_ioctl(struct inode *inode, struct file *file, case CONTROL_MINOR: switch (cmd) { case VME_IRQ_GEN: - copied = copy_from_user(&irq_req, (char *)arg, + copied = copy_from_user(&irq_req, argp, sizeof(struct vme_irq_id)); if (copied != 0) { printk(KERN_WARNING "Partial copy from userspace\n");