Cleanup sparse warning where ipmr is doing dev ioctl.

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>

--- pro-2.6.orig/net/ipv4/ipmr.c
+++ pro-2.6/net/ipv4/ipmr.c
@@ -140,9 +140,10 @@ struct net_device *ipmr_new_tunnel(struc
                p.iph.ihl = 5;
                p.iph.protocol = IPPROTO_IPIP;
                sprintf(p.name, "dvmrp%d", v->vifc_vifi);
-               ifr.ifr_ifru.ifru_data = (void*)&p;
+               ifr.ifr_ifru.ifru_data = (void __user *) &p;
 
-               oldfs = get_fs(); set_fs(KERNEL_DS);
+               oldfs = get_fs();
+               set_fs(KERNEL_DS);
                err = dev->do_ioctl(dev, &ifr, SIOCADDTUNNEL);
                set_fs(oldfs);
 

--
Stephen Hemminger <[EMAIL PROTECTED]>
OSDL http://developer.osdl.org/~shemminger

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to