Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp52070ybx; Thu, 31 Oct 2019 15:46:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwdM7zPkhs8UR2C6MGF78zCKA8v0GOvcJBaXJ9er9Qflq8Dxy+pNDVVEVn5BH56NyTOqT6 X-Received: by 2002:a17:906:7257:: with SMTP id n23mr6840328ejk.132.1572562015886; Thu, 31 Oct 2019 15:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572562015; cv=none; d=google.com; s=arc-20160816; b=NMoCgctuLO5RWmP74uG+jvfP2kZwAmcf3MYpZh8LRCmpz4ZWAgM8tM0rrpf/GfPxgZ gC/zPNsLGAr7sBdf9fwMyK7vGk004tIGcue9ogUVWUEWynDP6HCG7swm4jrLI27T5Pb9 NapotPVrmBoCfqQ8OxhSbSy2b0TTXV8rmElpwZi6GAh+C8ZbixIl7acu8nJIncPrfDXv +5oz90XMfxJ9Gwl8d3e9tFTak88y3i08zBPCiCDuy2SJ1IZsTxkElYp33Hl36UNgXMQ6 1/1fXgMq2NIUAppRteWY6f8YqNySrL01QhZSqtUgs1sTromvnVJbtHA4R2EK3oefNM2W /gWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=Lp1aizFi9fuE7mzhADmXBADauvYfWREzIMtjXwfWe0k=; b=MEkt9ohBisOu4r9gY0Omj4+tK44Rq+yr0YSf5FmIt0ZF4vHn4I26cOiByq24dtldpt USnUD3EheUPJhaxkFuHtNAeLTv2NQ6y8Dqh23C6Op0mTFhrlyc00FA+f7V+rB6uLuX39 chkUbkpEyHEKZyeUvgsHftFN3UHz5hsdNZpbggCAGeQXYwyNAHQaNK3vKvqP3Qk6EDTp ZzwgGxmWPy5afbnKZ9b/KsRxy7zy/kz1qvlmL9ztkFjk03pmykMVutA+AeRXBCCFlzvq jL/zPFYHJ2T31xeqXyEu7edbhuT/VR+V4+oIoKDHfkIk34ElTetSL37ew42Wb/qhsAWL M7MQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si4830380ejt.404.2019.10.31.15.46.33; Thu, 31 Oct 2019 15:46:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729806AbfJaU4P (ORCPT + 99 others); Thu, 31 Oct 2019 16:56:15 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:60880 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727511AbfJaU4P (ORCPT ); Thu, 31 Oct 2019 16:56:15 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id B557A14FEE6D8; Thu, 31 Oct 2019 13:56:14 -0700 (PDT) Date: Thu, 31 Oct 2019 13:56:10 -0700 (PDT) Message-Id: <20191031.135610.684836389491757031.davem@davemloft.net> To: natechancellor@gmail.com Cc: jiri@mellanox.com, idosch@mellanox.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] mlxsw: Fix 64-bit division in mlxsw_sp_sb_prs_init From: David Miller In-Reply-To: <20191030160152.11305-1-natechancellor@gmail.com> References: <20191030160152.11305-1-natechancellor@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 31 Oct 2019 13:56:14 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor Date: Wed, 30 Oct 2019 09:01:52 -0700 > When building for 32-bit ARM, there is a link time error because of a > 64-bit division: > > ld.lld: error: undefined symbol: __aeabi_uldivmod >>>> referenced by spectrum_buffers.c >>>> net/ethernet/mellanox/mlxsw/spectrum_buffers.o:(mlxsw_sp_buffers_init) in archive drivers/built-in.a >>>> did you mean: __aeabi_uidivmod >>>> defined in: arch/arm/lib/lib.a(lib1funcs.o > > Avoid this by using div_u64, which is designed to avoid this problem. > > Fixes: bc9f6e94bcb5 ("mlxsw: spectrum_buffers: Calculate the size of the main pool") > Signed-off-by: Nathan Chancellor Applied, thanks.