Commit c442ef96 authored by Kyle McMartin's avatar Kyle McMartin

parisc: squelch warning when using dev_get_stats

And switch to struct rtnl_link_stats64...
Signed-off-by: default avatarKyle McMartin <kyle@redhat.com>
parent 0acc1b2a
...@@ -346,8 +346,8 @@ static __inline__ int led_get_net_activity(void) ...@@ -346,8 +346,8 @@ static __inline__ int led_get_net_activity(void)
#ifndef CONFIG_NET #ifndef CONFIG_NET
return 0; return 0;
#else #else
static unsigned long rx_total_last, tx_total_last; static u64 rx_total_last, tx_total_last;
unsigned long rx_total, tx_total; u64 rx_total, tx_total;
struct net_device *dev; struct net_device *dev;
int retval; int retval;
...@@ -356,7 +356,7 @@ static __inline__ int led_get_net_activity(void) ...@@ -356,7 +356,7 @@ static __inline__ int led_get_net_activity(void)
/* we are running as a workqueue task, so we can use an RCU lookup */ /* we are running as a workqueue task, so we can use an RCU lookup */
rcu_read_lock(); rcu_read_lock();
for_each_netdev_rcu(&init_net, dev) { for_each_netdev_rcu(&init_net, dev) {
const struct net_device_stats *stats; const struct rtnl_link_stats64 *stats;
struct rtnl_link_stats64 temp; struct rtnl_link_stats64 temp;
struct in_device *in_dev = __in_dev_get_rcu(dev); struct in_device *in_dev = __in_dev_get_rcu(dev);
if (!in_dev || !in_dev->ifa_list) if (!in_dev || !in_dev->ifa_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment