Skip to content

Commit 68c3e5a

Browse files
Eric Dumazetdavem330
authored andcommitted
benet: fix build error on 32bit arch
Error comes from commit ac124ff (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>
1 parent 8df158a commit 68c3e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/emulex/benet/be_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ static void be_rx_eqd_update(struct be_adapter *adapter, struct be_rx_obj *rxo)
936936
pkts = stats->rx_pkts;
937937
} while (u64_stats_fetch_retry_bh(&stats->sync, start));
938938

939-
stats->rx_pps = (pkts - stats->rx_pkts_prev) / (delta / HZ);
939+
stats->rx_pps = (unsigned long)(pkts - stats->rx_pkts_prev) / (delta / HZ);
940940
stats->rx_pkts_prev = pkts;
941941
stats->rx_jiffies = now;
942942
eqd = stats->rx_pps / 110000;

0 commit comments

Comments
 (0)