net: vlan,ethtool: netdev_features_t is more than 32 bit
authorBjørn Mork <bjorn@mork.no>
Wed, 1 May 2013 23:06:42 +0000 (23:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 May 2013 17:58:12 +0000 (13:58 -0400)
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c
net/core/ethtool.c

index 8af508536d36b539117ffeecfc8e7b47200bd72d..3a8c8fd63c88e2c204a8f1ac3b6dc4eb3f15cc63 100644 (file)
@@ -628,7 +628,7 @@ static netdev_features_t vlan_dev_fix_features(struct net_device *dev,
        netdev_features_t features)
 {
        struct net_device *real_dev = vlan_dev_priv(dev)->real_dev;
-       u32 old_features = features;
+       netdev_features_t old_features = features;
 
        features &= real_dev->vlan_features;
        features |= NETIF_F_RXCSUM;
index 5a934ef90f8bc7a70a5236aa1d784dc1f5ff315f..22efdaa76ebf9909db7a69d59d54de191fd00d69 100644 (file)
@@ -1421,7 +1421,7 @@ int dev_ethtool(struct net *net, struct ifreq *ifr)
        void __user *useraddr = ifr->ifr_data;
        u32 ethcmd;
        int rc;
-       u32 old_features;
+       netdev_features_t old_features;
 
        if (!dev || !netif_device_present(dev))
                return -ENODEV;