Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a0f06fe authored by Tim Gardner's avatar Tim Gardner Committed by David S. Miller
Browse files

mlx5 core: Fix __udivdi3 when compiling for 32 bit arches



Cc: Eli Cohen <eli@mellanox.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 31bd2977
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -156,7 +156,7 @@ static ssize_t average_read(struct file *filp, char __user *buf, size_t count,
	stats = filp->private_data;
	stats = filp->private_data;
	spin_lock(&stats->lock);
	spin_lock(&stats->lock);
	if (stats->n)
	if (stats->n)
		field = stats->sum / stats->n;
		field = div64_u64(stats->sum, stats->n);
	spin_unlock(&stats->lock);
	spin_unlock(&stats->lock);
	ret = snprintf(tbuf, sizeof(tbuf), "%llu\n", field);
	ret = snprintf(tbuf, sizeof(tbuf), "%llu\n", field);
	if (ret > 0) {
	if (ret > 0) {