Skip to content

Commit

Permalink
mlx5 core: Fix __udivdi3 when compiling for 32 bit arches
Browse files Browse the repository at this point in the history
Cc: Eli Cohen <[email protected]>
Signed-off-by: Tim Gardner <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
rtg-canonical authored and davem330 committed Jul 16, 2013
1 parent 31bd297 commit 9a0f06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static ssize_t average_read(struct file *filp, char __user *buf, size_t count,
stats = filp->private_data;
spin_lock(&stats->lock);
if (stats->n)
field = stats->sum / stats->n;
field = div64_u64(stats->sum, stats->n);
spin_unlock(&stats->lock);
ret = snprintf(tbuf, sizeof(tbuf), "%llu\n", field);
if (ret > 0) {
Expand Down

0 comments on commit 9a0f06f

Please sign in to comment.