diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-08-13 04:06:42 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-08-13 04:06:55 -0400 |
commit | e402e38c6b148febf8c3c39546e24584eaa23e42 (patch) | |
tree | feaea65789054ccaf76496b943a0a9199ce0a276 /arch/s390/appldata | |
parent | b47ac63c7229dd13daf4d7eed806d720f769c526 (diff) |
[S390] appldata: fix dev_get_stats 64 bit conversion
Fix this warning:
arch/s390/appldata/appldata_net_sum.c: In function 'appldata_get_net_sum_data':
arch/s390/appldata/appldata_net_sum.c:89: warning: initialization from incompatible pointer type
which was introduced with be1f3c2c027cc5ad735df6a45a542ed1db7ec48b
"net: Enable 64-bit net device statistics on 32-bit architectures"
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/appldata')
-rw-r--r-- | arch/s390/appldata/appldata_net_sum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/appldata/appldata_net_sum.c b/arch/s390/appldata/appldata_net_sum.c index f02e89ce4df1..5da7c562a90b 100644 --- a/arch/s390/appldata/appldata_net_sum.c +++ b/arch/s390/appldata/appldata_net_sum.c | |||
@@ -85,9 +85,10 @@ static void appldata_get_net_sum_data(void *data) | |||
85 | 85 | ||
86 | rcu_read_lock(); | 86 | rcu_read_lock(); |
87 | for_each_netdev_rcu(&init_net, dev) { | 87 | for_each_netdev_rcu(&init_net, dev) { |
88 | const struct rtnl_link_stats64 *stats; | ||
88 | struct rtnl_link_stats64 temp; | 89 | struct rtnl_link_stats64 temp; |
89 | const struct net_device_stats *stats = dev_get_stats(dev, &temp); | ||
90 | 90 | ||
91 | stats = dev_get_stats(dev, &temp); | ||
91 | rx_packets += stats->rx_packets; | 92 | rx_packets += stats->rx_packets; |
92 | tx_packets += stats->tx_packets; | 93 | tx_packets += stats->tx_packets; |
93 | rx_bytes += stats->rx_bytes; | 94 | rx_bytes += stats->rx_bytes; |