benet: fix build error on 32bit arch
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 9 Aug 2011 06:23:07 +0000 (06:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Aug 2011 09:54:22 +0000 (02:54 -0700)
Error comes from commit ac124ff973e27802797
(be2net: cleanup and refactor stats code)

ERROR: "__udivdi3" [drivers/net/benet/be2net.ko] undefined!

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index 1a3accab3d1721fa79ef3461d73ce70bf3460ea2..7c98d8e99508aaaa0592213f85d318b5f794eb34 100644 (file)
@@ -936,7 +936,7 @@ static void be_rx_eqd_update(struct be_adapter *adapter, struct be_rx_obj *rxo)
                pkts = stats->rx_pkts;
        } while (u64_stats_fetch_retry_bh(&stats->sync, start));
 
-       stats->rx_pps = (pkts - stats->rx_pkts_prev) / (delta / HZ);
+       stats->rx_pps = (unsigned long)(pkts - stats->rx_pkts_prev) / (delta / HZ);
        stats->rx_pkts_prev = pkts;
        stats->rx_jiffies = now;
        eqd = stats->rx_pps / 110000;