|
@@ -137,8 +137,8 @@ static void igb_update_phy_info(unsigned long);
|
|
static void igb_watchdog(unsigned long);
|
|
static void igb_watchdog(unsigned long);
|
|
static void igb_watchdog_task(struct work_struct *);
|
|
static void igb_watchdog_task(struct work_struct *);
|
|
static netdev_tx_t igb_xmit_frame(struct sk_buff *skb, struct net_device *);
|
|
static netdev_tx_t igb_xmit_frame(struct sk_buff *skb, struct net_device *);
|
|
-static struct rtnl_link_stats64 *igb_get_stats64(struct net_device *dev,
|
|
|
|
- struct rtnl_link_stats64 *stats);
|
|
|
|
|
|
+static void igb_get_stats64(struct net_device *dev,
|
|
|
|
+ struct rtnl_link_stats64 *stats);
|
|
static int igb_change_mtu(struct net_device *, int);
|
|
static int igb_change_mtu(struct net_device *, int);
|
|
static int igb_set_mac(struct net_device *, void *);
|
|
static int igb_set_mac(struct net_device *, void *);
|
|
static void igb_set_uta(struct igb_adapter *adapter, bool set);
|
|
static void igb_set_uta(struct igb_adapter *adapter, bool set);
|
|
@@ -5404,8 +5404,8 @@ static void igb_reset_task(struct work_struct *work)
|
|
* @netdev: network interface device structure
|
|
* @netdev: network interface device structure
|
|
* @stats: rtnl_link_stats64 pointer
|
|
* @stats: rtnl_link_stats64 pointer
|
|
**/
|
|
**/
|
|
-static struct rtnl_link_stats64 *igb_get_stats64(struct net_device *netdev,
|
|
|
|
- struct rtnl_link_stats64 *stats)
|
|
|
|
|
|
+static void igb_get_stats64(struct net_device *netdev,
|
|
|
|
+ struct rtnl_link_stats64 *stats)
|
|
{
|
|
{
|
|
struct igb_adapter *adapter = netdev_priv(netdev);
|
|
struct igb_adapter *adapter = netdev_priv(netdev);
|
|
|
|
|
|
@@ -5413,8 +5413,6 @@ static struct rtnl_link_stats64 *igb_get_stats64(struct net_device *netdev,
|
|
igb_update_stats(adapter, &adapter->stats64);
|
|
igb_update_stats(adapter, &adapter->stats64);
|
|
memcpy(stats, &adapter->stats64, sizeof(*stats));
|
|
memcpy(stats, &adapter->stats64, sizeof(*stats));
|
|
spin_unlock(&adapter->stats64_lock);
|
|
spin_unlock(&adapter->stats64_lock);
|
|
-
|
|
|
|
- return stats;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|