]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ppc64: ioctl32 warning fix
authorAndrew Morton <akpm@digeo.com>
Sun, 25 May 2003 08:09:32 +0000 (01:09 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 25 May 2003 08:09:32 +0000 (01:09 -0700)
warning: assignment makes pointer from integer without a cast

arch/ppc64/kernel/ioctl32.c

index b504e47bbcac274b20f0bc5178ca7f42cd3cd5d0..5562991be8020a9ad0f2fe947f389aa54ea8ee1b 100644 (file)
@@ -685,7 +685,7 @@ int siocdevprivate_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
                return -EFAULT;
        if (__get_user(data32, &u_ifreq32->ifr_ifru.ifru_data))
                return -EFAULT;
-       data64 = A(data32);
+       data64 = (void __user *)A(data32);
 
        u_ifreq64 = compat_alloc_user_space(sizeof(*u_ifreq64));