[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190907155805.GE21922@lunn.ch>
Date: Sat, 7 Sep 2019 17:58:05 +0200
From: Andrew Lunn <andrew@...n.ch>
To: zhong jiang <zhongjiang@...wei.com>
Cc: davem@...emloft.net, kstewart@...uxfoundation.org,
gregkh@...uxfoundation.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ethernet: micrel: Use DIV_ROUND_CLOSEST directly to make
it readable
On Sat, Sep 07, 2019 at 11:14:00AM +0800, zhong jiang wrote:
> On 2019/9/7 3:40, Andrew Lunn wrote:
> > On Thu, Sep 05, 2019 at 11:53:48PM +0800, zhong jiang wrote:
> >> The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
> >> but is perhaps more readable.
> > Hi Zhong
> >
> > Did you find this by hand, or did you use a tool. If a tool is used,
> > it is normal to give some credit to the tool.
> With the following help of Coccinelle.
It is good to mention Coccinelle or other such tools. They often exist
because of university research work, and funding for such tools does
depend on publicity of the tools, getting the credit they deserve.
Andrew
Powered by blists - more mailing lists