From patchwork Wed Apr 29 08:47:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 220343 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 565D0C83007 for ; Wed, 29 Apr 2020 08:48:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4046220775 for ; Wed, 29 Apr 2020 08:48:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726631AbgD2IsI (ORCPT ); Wed, 29 Apr 2020 04:48:08 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:36793 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbgD2IsH (ORCPT ); Wed, 29 Apr 2020 04:48:07 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1MZCOl-1jgegV2MXh-00V7l9; Wed, 29 Apr 2020 10:47:54 +0200 From: Arnd Bergmann To: Ioana Ciornei , Ioana Radulescu , "David S. Miller" Cc: Arnd Bergmann , Greg Kroah-Hartman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dpaa2-eth: debugfs: use div64_u64 for division Date: Wed, 29 Apr 2020 10:47:22 +0200 Message-Id: <20200429084740.2665893-1-ar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JHLrt bLJwsOmpnndNw9kQFxf4lQLf/NTu1ZHg4MvOBvMuhOTfZxKTkSSROkdt+YqUKIz9mldfUpJ4+ JKFtNeprj/gXFXLIcjk61v7y1QI8ScRuWXW84dY7JbJMQ4OKis= Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org A plain 64-bit division breaks building on 32-bit architectures: ERROR: modpost: "__aeabi_uldivmod" [drivers/net/ethernet/freescale/dpaa2/fsl-dpaa2-eth.ko] undefined! As this function is not performance critical, just use the external helper instead. Fixes: 460fd830dd9d ("dpaa2-eth: add channel stat to debugfs") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c index 80291afff3ea..0a31e4268dfb 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c @@ -139,7 +139,7 @@ static int dpaa2_dbg_ch_show(struct seq_file *file, void *offset) ch->stats.dequeue_portal_busy, ch->stats.frames, ch->stats.cdan, - ch->stats.frames / ch->stats.cdan, + div64_u64(ch->stats.frames, ch->stats.cdan), ch->buf_count); }