From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtprelay.hostedemail.com (smtprelay0121.hostedemail.com. [216.40.44.121]) by gmr-mx.google.com with ESMTPS id c195si317412itb.0.2017.01.10.15.06.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2017 15:06:55 -0800 (PST) Message-ID: <1484089612.12006.11.camel@perches.com> Subject: Re: [PATCH 0/2] Style fixes: open code obfuscating macros From: Joe Perches Date: Tue, 10 Jan 2017 15:06:52 -0800 In-Reply-To: References: <1483407036-20697-1-git-send-email-logang@deltatee.com> <20170110215527.GD13381@kudzu.us> Content-Type: text/plain; charset="ISO-8859-1" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit To: Jon Mason , Logan Gunthorpe Cc: Xiangliang Yu , Dave Jiang , Allen Hubbe , Greg Kroah-Hartman , linux-ntb@googlegroups.com, linux-kernel List-ID: On Tue, 2017-01-10 at 16:59 -0500, Jon Mason wrote: > On Tue, Jan 10, 2017 at 4:55 PM, Jon Mason wrote: > > On Mon, Jan 02, 2017 at 06:30:34PM -0700, Logan Gunthorpe wrote: > > > Hi, > > > > > > I had copied some poor code style from the NTB drivers into an unrelated > > > driver. Upon review of my new code, I learned it was not a good idea > > > to sweep dirty things under the rug^W macro. See [1], where Gregg k-h > > > suggested I fix the problem at the source. > > > > > > Thus, please merge the following two patches to improve the style of > > > the NTB drivers. > > > > > > Thanks, > > > > > > Logan > > > > Applying the series, thanks > > Gaaa, these don't apply cleanly. Can you rebase on my > https://github.com/jonmason/ntb (branch ntb) and resubmit? It might also be better to add and use YA logging macro like ndev_dbg #define ndev_dvg(ndev, fmt, ...) \ dev_dbg(&(ndev)->ntb.pdev->dev, fmt, ##__VA_ARGS__) so that the new temporaries that are used just for debugging are not required.