Skip to content

Commit

Permalink
net: netcp: correct netcp_get_stats function signature
Browse files Browse the repository at this point in the history
Commit: bc1f447 - net: make ndo_get_stats64 a void function
and
Commit: 6a8162e - net: netcp: store network statistics in 64 bits.

The commit 6a8162e adds ndo_get_stats64 function as per old
signature which causes compilation error:

drivers/net/ethernet/ti/netcp_core.c:1951:28: error:
initialization from incompatible pointer type
  .ndo_get_stats64        = netcp_get_stats,

Hence correct netcp_get_stats function signature as per
the latest definition.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Fixes: 6a8162e ("net: netcp: store network statistics in 64 bits")
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Keerthy authored and David S. Miller committed Jan 11, 2017
1 parent fe02e1c commit 380043b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/ti/netcp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ static int netcp_setup_tc(struct net_device *dev, u32 handle, __be16 proto,
return 0;
}

static struct rtnl_link_stats64 *
static void
netcp_get_stats(struct net_device *ndev, struct rtnl_link_stats64 *stats)
{
struct netcp_intf *netcp = netdev_priv(ndev);
Expand Down Expand Up @@ -1938,8 +1938,6 @@ netcp_get_stats(struct net_device *ndev, struct rtnl_link_stats64 *stats)
stats->rx_errors = p->rx_errors;
stats->rx_dropped = p->rx_dropped;
stats->tx_dropped = p->tx_dropped;

return stats;
}

static const struct net_device_ops netcp_netdev_ops = {
Expand Down

0 comments on commit 380043b

Please sign in to comment.