Received: by 10.223.185.116 with SMTP id b49csp3942208wrg; Mon, 26 Feb 2018 08:34:25 -0800 (PST) X-Google-Smtp-Source: AH8x226F57Elz+yfvBGW55sjOhHXmh3U3LsGY90Y74VNH8aNoxY09bd22quWp4koYs8Qr9YdfPPe X-Received: by 10.98.194.219 with SMTP id w88mr11172575pfk.26.1519662865445; Mon, 26 Feb 2018 08:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519662865; cv=none; d=google.com; s=arc-20160816; b=jDVkjoXzs3cxt2zjTL0FdXWxWKXZ6t4rFLqwLiTSO6Gs4sHzK7feclRKDNglqDsr/e PJTahYCLaT+KdFbeU4MUcC3TFHELHfveD+AHW9AB4iZB54YGo1CuWshCKBZE5m3UUMZH E6qkkMQ1cujPtla/XQPS06nrxteynNKXCER80EZSDdIIlDJplVWf0ur86n1lkWhTCQGj mMsWEyAxbNkXTgvJlTdqMMYHHEP+pt6v5zKHiO/v+6QV8bj39+OhaayGE8F1akkDzH9u yOHsIBdCtM0VLRbPrN09N1OqeNrHoL7Nx33tcOSILo4v+yWPhOtPFEAtYy2GgDe7/ls0 JpWA== 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 :arc-authentication-results; bh=6fLeIt40reWZjkSXMiTEmIBUdadcTSWAMKb21iYKhFk=; b=By6u8vlA/3fknkke8RpwfOVYGbjvgAEdScBMt+TUHUZndJ4D8QDpHLHmzXqnmkC0CQ UcaJBVyhdzKW5xY0RgN87endNl41r5UbHl0oMiciz3OWMf3FjW4zlWYMA69/TWuHiM1f iYATtlolyBGUaySxj+0qkpk141szwD40OFfaqtUEJGYvONZw1tZHbpGaWSSYMaJgKgmk Ccpyl+VdNvXSFUJ+d5xlDu6T0xcsPTDH8R+26nwe24bKu1IHGaQLOnQ/vHg+4zHPy8n7 9PEwJD6L0tDNU3L0r8pZ/L6F8HaXuyyfndz2Roo1asbUUFLzN6gDgJhqshr4vgqizPV+ I7ow== 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 p9si6957291pff.235.2018.02.26.08.34.10; Mon, 26 Feb 2018 08:34:25 -0800 (PST) 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 S1752130AbeBZQd0 (ORCPT + 99 others); Mon, 26 Feb 2018 11:33:26 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:43852 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751724AbeBZQdZ (ORCPT ); Mon, 26 Feb 2018 11:33:25 -0500 Received: from localhost (67.110.78.66.ptr.us.xo.net [67.110.78.66]) (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 700D2141EF2DA; Mon, 26 Feb 2018 08:33:24 -0800 (PST) Date: Mon, 26 Feb 2018 11:33:23 -0500 (EST) Message-Id: <20180226.113323.393948046273779787.davem@davemloft.net> To: arnd@arndb.de Cc: arkadis@mellanox.com, jiri@mellanox.com, idosch@mellanox.com, weiyongjun1@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH 1/2] mlxsw: spectrum_kvdl: use div_u64() for 64-bit division From: David Miller In-Reply-To: <20180223131540.1065413-1-arnd@arndb.de> References: <20180223131540.1065413-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) 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]); Mon, 26 Feb 2018 08:33:25 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Fri, 23 Feb 2018 14:15:31 +0100 > Calculating the number of entries now uses 64-bit arithmetic that > causes a link error on 32-bit architectures: > > drivers/net/ethernet/mellanox/mlxsw/spectrum_kvdl.o: In function `mlxsw_sp_kvdl_init': > spectrum_kvdl.c:(.text+0x51c): undefined reference to `__aeabi_uldivmod' > > We could probably use a 32-bit division here as before, but since this is > not in a performance critical path, div_u64() seems cleaner here. > > Fixes: 887839e6960d ("mlxsw: spectrum_kvdl: Add support for dynamic partition set") > Signed-off-by: Arnd Bergmann Applied.