From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Peter=20N=C3=B8rlund?= Subject: [PATCH net-next] Fixes: 0e884c7 ipv4: L3 hash-based multipath: tag Date: Tue, 6 Oct 2015 00:14:57 +0200 Message-ID: <1444083297-3454-1-git-send-email-pch@ordbogen.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , "Peter Noerlund" To: netdev@vger.kernel.org Return-path: Received: from mail.ordbogen.com ([91.240.88.21]:46797 "EHLO mail.ordbogen.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751370AbbJEWPH (ORCPT ); Mon, 5 Oct 2015 18:15:07 -0400 Sender: netdev-owner@vger.kernel.org List-ID: commit 0e884c78ee19e902f300ed147083c28a0c6302f0 ("ipv4: L3 hash-based multipath") broke compilation for i386 and arm due to dependency on 64-bit division. The problem is simply solved by using the proper macro for 64-bit divison. Signed-off-by: Peter N=C3=B8rlund --- net/ipv4/fib_semantics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 0c49d2f..52254e8 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c @@ -569,8 +569,8 @@ static void fib_rebalance(struct fib_info *fi) upper_bound =3D -1; } else { w +=3D nexthop_nh->nh_weight; - upper_bound =3D DIV_ROUND_CLOSEST(2147483648LL * w, - total) - 1; + upper_bound =3D DIV_ROUND_CLOSEST_ULL(2147483648ULL * w, + total) - 1; } =20 atomic_set(&nexthop_nh->nh_upper_bound, upper_bound); --=20 2.1.4