提交 fe931395 编写于 作者: A Andrew Morton 提交者: Jeff Garzik

[PATCH] git-netdev-all: s2io fixes

Fix this:

drivers/built-in.o(.text+0x89469): In function `s2io_get_ethtool_stats':
drivers/net/s2io.c:5209: undefined reference to `__udivdi3'

Cc: Ravinandan Arakali <Ravinandan.Arakali@neterion.com>
Cc: Ananda Raju <Ananda.Raju@neterion.com>
Cc: Adrian Bunk <bunk@stusta.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 7d3d0439
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
#include <asm/system.h> #include <asm/system.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/div64.h>
/* local include */ /* local include */
#include "s2io.h" #include "s2io.h"
...@@ -5110,6 +5111,7 @@ static void s2io_get_ethtool_stats(struct net_device *dev, ...@@ -5110,6 +5111,7 @@ static void s2io_get_ethtool_stats(struct net_device *dev,
int i = 0; int i = 0;
nic_t *sp = dev->priv; nic_t *sp = dev->priv;
StatInfo_t *stat_info = sp->mac_control.stats_info; StatInfo_t *stat_info = sp->mac_control.stats_info;
u64 tmp;
s2io_updt_stats(sp); s2io_updt_stats(sp);
tmp_stats[i++] = tmp_stats[i++] =
...@@ -5205,12 +5207,12 @@ static void s2io_get_ethtool_stats(struct net_device *dev, ...@@ -5205,12 +5207,12 @@ static void s2io_get_ethtool_stats(struct net_device *dev,
tmp_stats[i++] = stat_info->sw_stat.sending_both; tmp_stats[i++] = stat_info->sw_stat.sending_both;
tmp_stats[i++] = stat_info->sw_stat.outof_sequence_pkts; tmp_stats[i++] = stat_info->sw_stat.outof_sequence_pkts;
tmp_stats[i++] = stat_info->sw_stat.flush_max_pkts; tmp_stats[i++] = stat_info->sw_stat.flush_max_pkts;
if (stat_info->sw_stat.num_aggregations) tmp = 0;
tmp_stats[i++] = stat_info->sw_stat.sum_avg_pkts_aggregated / if (stat_info->sw_stat.num_aggregations) {
stat_info->sw_stat.num_aggregations; tmp = stat_info->sw_stat.sum_avg_pkts_aggregated;
else do_div(tmp, stat_info->sw_stat.num_aggregations);
tmp_stats[i++] = 0; }
tmp_stats[i++] = tmp;
} }
static int s2io_ethtool_get_regs_len(struct net_device *dev) static int s2io_ethtool_get_regs_len(struct net_device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册