From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: Re: [PATCH 3.11-rc1] mlx5 core: Fix __udivdi3 when compiling for 32 bit arches Date: Mon, 15 Jul 2013 08:52:18 -0700 Message-ID: <51E41AB2.3020905@infradead.org> References: <1373900205-69711-1-git-send-email-tim.gardner@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Eli Cohen To: Tim Gardner Return-path: In-Reply-To: <1373900205-69711-1-git-send-email-tim.gardner-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On 07/15/13 07:56, Tim Gardner wrote: > Cc: Eli Cohen > Signed-off-by: Tim Gardner I reported this last week and Eli wrote: "I have this fixed in my tree and we run the driver on i386. I will check on Sunday why it is not in the patches submitted." Anyway, the patch works for me. Acked-by: Randy Dunlap Reported-by: Randy Dunlap Thanks. > --- > drivers/net/ethernet/mellanox/mlx5/core/debugfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/debugfs.c b/drivers/net/ethernet/mellanox/mlx5/core/debugfs.c > index 4273c06..9c7194b 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/debugfs.c > +++ b/drivers/net/ethernet/mellanox/mlx5/core/debugfs.c > @@ -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) { > -- ~Randy -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html