Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2190169pxb; Wed, 9 Feb 2022 12:49:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7KSHc2BfVFuPlgqfN3706pa8Hpx7wYh5bwHVbfpvcSG7esshbWd502eC1gUSEtscErMe1 X-Received: by 2002:a65:6a46:: with SMTP id o6mr3420819pgu.465.1644439784711; Wed, 09 Feb 2022 12:49:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644439784; cv=none; d=google.com; s=arc-20160816; b=1A1wRIZAWUE/Em5fEqYEbdFbD7PMjLHbZmhtGvgtorIxJU81UThVgzhxA0Yu21AWd7 r4OZG+UNdnzyfnzwmSKux4uH0w/qVRm8elm8A3xoFImDFredfOuyaMC0Mw+A3E9hcT0K +X02ONM0a05QzjmPJV8Jyb/uFLHKaWIh6I+lAVZjoAhlFtAsyRh/qPHdP8RDYLwXUOW0 0oJUYGq6KDNEonzVss/m1MFsqi5igMwWZRKa95+zU8xAlnKeak7U3e25q5pdSU3oZt+x O5dRbK2agW+81HT09rh9gvyWxU8kyvAr45kei8gmR6HlS+0Wb6X42z1DgbCCigpyq/fG Cglw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=+AvUCI6dabcFiAdFCmGStuq5XGDzRNn9/TQVid73HAM=; b=Y/dLOC62aqNyrtJPdKFMUElp9kE6jbD3X1bd2O9m4JluYd69ct7O1n3JW+h0nmxkBC t1YePT2li6BB6FrMp9jI6NMzU5GiXEoqfVw2l0oUHXai+Oc477qZF3iS+GarRlesjSkE rYJyFpJ5+T2U8LBNAQlJlTU+IjhZZQQKKCnURmXyK14i7V1GsgCapAkf5dSoQGilfuNp xglNVoR7rb8bLi+QPODhucbQLD13L2BkSCXEtuzQRwmjETdP4CLV//CUfpXhZ4zk+Mxh SXALNJP4hJOHHiDjtvOPXGja++0i/7JH7a/BMpFIlX48rHCaQTY/Js9Jo8EOU68kz42R tg1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y19si15153546plr.271.2022.02.09.12.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 12:49:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62576E096EAB; Wed, 9 Feb 2022 12:12:58 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230422AbiBIUCC (ORCPT + 99 others); Wed, 9 Feb 2022 15:02:02 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:37552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230440AbiBIUB7 (ORCPT ); Wed, 9 Feb 2022 15:01:59 -0500 Received: from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr [80.12.242.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F948E016CFD for ; Wed, 9 Feb 2022 12:01:55 -0800 (PST) Received: from [192.168.1.18] ([90.126.236.122]) by smtp.orange.fr with ESMTPA id Ht9jnZeTrbnFGHt9kncb5B; Wed, 09 Feb 2022 21:01:37 +0100 X-ME-Helo: [192.168.1.18] X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Wed, 09 Feb 2022 21:01:37 +0100 X-ME-IP: 90.126.236.122 Message-ID: <056a7276-c6f0-cd7e-9e46-1d8507a0b6b1@wanadoo.fr> Date: Wed, 9 Feb 2022 21:01:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] net: ethernet: cavium: use div64_u64() instead of do_div() Content-Language: en-US To: patchwork-bot+netdevbpf@kernel.org, Qing Wang Cc: dchickles@marvell.com, sburla@marvell.com, fmanlunas@marvell.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1644395960-4232-1-git-send-email-wangqing@vivo.com> <164441341163.22778.9220881439999777663.git-patchwork-notify@kernel.org> From: Christophe JAILLET In-Reply-To: <164441341163.22778.9220881439999777663.git-patchwork-notify@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 09/02/2022 à 14:30, patchwork-bot+netdevbpf@kernel.org a écrit : > Hello: > > This patch was applied to netdev/net-next.git (master) > by David S. Miller : > > On Wed, 9 Feb 2022 00:39:19 -0800 you wrote: >> From: Wang Qing >> >> do_div() does a 64-by-32 division. >> When the divisor is u64, do_div() truncates it to 32 bits, this means it >> can test non-zero and be truncated to zero for division. >> >> fix do_div.cocci warning: >> do_div() does a 64-by-32 division, please consider using div64_u64 instead. >> >> [...] > > Here is the summary with links: > - net: ethernet: cavium: use div64_u64() instead of do_div() > https://git.kernel.org/netdev/net-next/c/038fcdaf0470 > > You are awesome, thank you! Hi, I think that this patch should be reverted because do_div() and div64_u64() don't have the same calling convention. See [1] [1]: https://lore.kernel.org/linux-kernel/20211117112559.jix3hmx7uwqmuryg@pengutronix.de/ CJ