Commit c442ef96bfe1a981d44dd09d49a1eed93b94e82a
1 parent
0acc1b2afb
Exists in
master
and in
39 other branches
parisc: squelch warning when using dev_get_stats
And switch to struct rtnl_link_stats64... Signed-off-by: Kyle McMartin <kyle@redhat.com>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
drivers/parisc/led.c
... | ... | @@ -346,8 +346,8 @@ |
346 | 346 | #ifndef CONFIG_NET |
347 | 347 | return 0; |
348 | 348 | #else |
349 | - static unsigned long rx_total_last, tx_total_last; | |
350 | - unsigned long rx_total, tx_total; | |
349 | + static u64 rx_total_last, tx_total_last; | |
350 | + u64 rx_total, tx_total; | |
351 | 351 | struct net_device *dev; |
352 | 352 | int retval; |
353 | 353 | |
... | ... | @@ -356,7 +356,7 @@ |
356 | 356 | /* we are running as a workqueue task, so we can use an RCU lookup */ |
357 | 357 | rcu_read_lock(); |
358 | 358 | for_each_netdev_rcu(&init_net, dev) { |
359 | - const struct net_device_stats *stats; | |
359 | + const struct rtnl_link_stats64 *stats; | |
360 | 360 | struct rtnl_link_stats64 temp; |
361 | 361 | struct in_device *in_dev = __in_dev_get_rcu(dev); |
362 | 362 | if (!in_dev || !in_dev->ifa_list) |