Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3493474ybe; Sun, 8 Sep 2019 15:22:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9neREfMhZ7dXtqG2p48is9L5E0LQKIfTczH88dh/xwf4WpiKMOW+qRKM7YuvCoeMMRWX7 X-Received: by 2002:a50:adea:: with SMTP id b39mr21031453edd.16.1567981361820; Sun, 08 Sep 2019 15:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567981361; cv=none; d=google.com; s=arc-20160816; b=LkKHH3yzjq5WOpoHF6Q5SB3UN4IztBv1R/VFIeNYhNYEfhzFGX/dZumrv8zSPkc16R jAH+nLMzKDpV6MH1dD/pSxrCRftSVvZQBVVk+gzTYU9Qvnl7FM1GzFu1vgTuyTRgTG5f jJCVnjUFYnrkpiGzp+OVbKqaz5R5RzY2MuSxGvygSLXtxsALY/itTqvfolYV3TgcL2SC qSAQi5ypBFXcFDhZmUB4k4mOV3MbN5drTWHJQltIjLgEnOz2A950GTQzxSXNZwDowIT3 QuKjaPZN6y9nLjJqFntJ+ERxYVI169Cm1J8c/2oowt+rBX2/IOQ9eIegsqNZpbq+IcMJ qrAA== 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=9IV7VBIn8otErkr4oKvTrDW2zZgBOZiGETdsyGoPlkQ=; b=sRX7vqD1D6hQgmndobY+SgJPtZZlFzAZ/9pNbvDeZooSPHI8aTR20bhG19rYOjppKZ xHKNbo53uzK+6Q51gwUCGDpRYH/bEk4VLbw2a1WQB5DR3GyQRqjDLpL1T2Z3bFwcy43B olcgPQqlO53DhpM39WXRWICpoCUkZRr7IQyTPW8b/9LStuyO2yEcLnDnpejzQS3gWIhy B6dct/JMJARmGsmmkp7HEtjEfBSJs+2XFtl/4Wn9rSpIEqVf1B61a3TdrksVXH9z2s5g vyPBjZ1MgbABLBeIBitPbyMKdZcV33LQpCjOz5F8zzuvsdgH42o0HcEIRGFDEUwbsquo eNCw== 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 f3si3301241ejl.162.2019.09.08.15.22.16; Sun, 08 Sep 2019 15:22:41 -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 S2406077AbfIGPRi (ORCPT + 99 others); Sat, 7 Sep 2019 11:17:38 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:46044 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388430AbfIGPRi (ORCPT ); Sat, 7 Sep 2019 11:17:38 -0400 Received: from localhost (unknown [88.214.184.0]) (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 C29341528CDC7; Sat, 7 Sep 2019 08:17:36 -0700 (PDT) Date: Sat, 07 Sep 2019 17:17:32 +0200 (CEST) Message-Id: <20190907.171732.225166591073177009.davem@davemloft.net> To: zhongjiang@huawei.com Cc: kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ethernet: micrel: Use DIV_ROUND_CLOSEST directly to make it readable From: David Miller In-Reply-To: <1567698828-26825-1-git-send-email-zhongjiang@huawei.com> References: <1567698828-26825-1-git-send-email-zhongjiang@huawei.com> X-Mailer: Mew version 6.8 on Emacs 26.2 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]); Sat, 07 Sep 2019 08:17:38 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: zhong jiang Date: Thu, 5 Sep 2019 23:53:48 +0800 > The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d > but is perhaps more readable. > > Signed-off-by: zhong jiang Applied to net-next.