Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942236AbcJFQAB (ORCPT ); Thu, 6 Oct 2016 12:00:01 -0400 Received: from smtprelay0230.hostedemail.com ([216.40.44.230]:33199 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S942073AbcJFP7x (ORCPT ); Thu, 6 Oct 2016 11:59:53 -0400 X-Greylist: delayed 446 seconds by postgrey-1.27 at vger.kernel.org; Thu, 06 Oct 2016 11:59:53 EDT X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,coupons@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1362:1373:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1801:2194:2199:2393:2553:2559:2562:2828:2904:3138:3139:3140:3141:3142:3355:3622:3865:3866:3867:3868:3871:3872:4321:4605:5007:6119:7514:7875:7903:9149:10004:10400:10848:11026:11232:11658:11914:12043:12114:12295:12438:12555:12740:12760:13161:13229:13255:13439:14096:14097:14181:14659:14721:21080:21324:21365:21433:30046:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:4,LUA_SUMMARY:none X-HE-Tag: peace18_150a55bf5fe20 X-Filterd-Recvd-Size: 3670 Message-ID: <1475769143.1914.7.camel@perches.com> Subject: Re: [PATCH] Staging:dgnc:dgnc_neo: fixed 80 character line limit coding style issue From: Joe Perches To: Nadim Almas , Greg KH Cc: Lidza Louina , markh@compro.net, devel@driverdev.osuosl.org, driverdev-devel@linuxdriverproject.org, linux-kernel@vger.kernel.org Date: Thu, 06 Oct 2016 08:52:23 -0700 In-Reply-To: References: <20161005215358.GA4231@gmail.com> <20161006052148.GA20295@kroah.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.0-2ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2499 Lines: 65 On Thu, 2016-10-06 at 20:53 +0530, Nadim Almas wrote: > May be it is not looking better than it did before but it removed 6 warning of > the file which is shown by running "perl scripts/checkpatch.pl -f > drivers/staging/dgnc/* | less" commend > than why it is not acceptable (please don't top post) Because it's ugly and checkpatch output messages are not dicta. If this is really useful, realign all the comments to start on the same column. more below... > On Thu, Oct 6, 2016 at 1:52 PM, Nadim Almas wrote: > > May be it is not looking better than yours but it removed 6 warning of > > the file which is shown by running "perl scripts/checkpatch.pl -f > > drivers/staging/dgnc/* | less" commend > > > > On Thu, Oct 6, 2016 at 10:51 AM, Greg KH wrote: > > > On Wed, Oct 05, 2016 at 02:53:58PM -0700, Nadim Almas wrote: > > > > Fixed coding style issue > > > > > > > > Signed-off-by: Nadim Almas > > > > --- > > > > drivers/staging/dgnc/dgnc_neo.h | 18 ++++++++++++------ > > > > 1 file changed, 12 insertions(+), 6 deletions(-) > > > > > > > > diff --git a/drivers/staging/dgnc/dgnc_neo.h b/drivers/staging/dgnc/dgnc_neo.h > > > > index abddd48..65994e3 100644 > > > > --- a/drivers/staging/dgnc/dgnc_neo.h > > > > +++ b/drivers/staging/dgnc/dgnc_neo.h > > > > @@ -30,7 +30,8 @@ > > > > struct neo_uart_struct {O > > > > u8 txrx; /* WR RHR/THR - Holding Reg */ > > > > u8 ier; /* WR IER - Interrupt Enable Reg */ > > > > - u8 isr_fcr; /* WR ISR/FCR - Interrupt Status Reg/Fifo Control Reg */ > > > > + u8 isr_fcr; /* WR ISR/FCR - Interrupt Status Reg/Fifo Control */ > > > > + /*Reg */ Consider 12345678901234567890123456789012345678901234567890123456789012345678901234567890 struct neo_uart_struct { u8 txrx; /* WR RHR/THR - Holding Reg */ u8 ier; /* WR IER - Interrupt Enable Reg */ u8 isr_fcr; /* WR ISR/FCR - Interrupt Status & Fifo Control Reg */ or struct neo_uart_struct { u8 txrx; /* WR RHR/THR - Holding Reg */ u8 ier; /* WR IER - Interrupt Enable Reg */ u8 isr_fcr; /* WR ISR/FCR - Interrupt Status Reg and * Fifo Control Reg */ or struct neo_uart_struct { u8 txrx; // WR RHR/THR - Holding Reg u8 ier; // WR IER - Interrupt Enable Reg u8 isr_fcr; // WR ISR/FCR - Interrupt Status/Fifo Control Reg