Fix warning from sparse in bonding code about "incorrect type in assignment"

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


--- orig/drivers/net/bonding/bond_main.c        2006-05-04 16:22:10.000000000 
-0700
+++ new/drivers/net/bonding/bond_main.c 2006-05-10 16:04:38.000000000 -0700
@@ -629,7 +629,7 @@
        ioctl = slave_dev->do_ioctl;
        strncpy(ifr.ifr_name, slave_dev->name, IFNAMSIZ);
        etool.cmd = ETHTOOL_GSET;
-       ifr.ifr_data = (char*)&etool;
+       ifr.ifr_data = (void __user *) &etool;
        if (!ioctl || (IOCTL(slave_dev, &ifr, SIOCETHTOOL) < 0)) {
                return -1;
        }
@@ -726,7 +726,7 @@
        if (ioctl) {
                strncpy(ifr.ifr_name, slave_dev->name, IFNAMSIZ);
                etool.cmd = ETHTOOL_GLINK;
-               ifr.ifr_data = (char*)&etool;
+               ifr.ifr_data = (void __user *) &etool;
                if (IOCTL(slave_dev, &ifr, SIOCETHTOOL) == 0) {
                        if (etool.data == 1) {
                                return BMSR_LSTATUS;
-
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