Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756254AbbEUQkK (ORCPT ); Thu, 21 May 2015 12:40:10 -0400 Received: from smtprelay0145.hostedemail.com ([216.40.44.145]:41636 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753621AbbEUQkI (ORCPT ); Thu, 21 May 2015 12:40:08 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:2919:3138:3139:3140:3141:3142:3353:3622:3743:3865:3867:3868:3871:3872:3873:3874:4321:4605:5007:6119:6261:7903:9040:10004:10400:10848:11026:11232:11473:11658:11914:12043:12294:12296:12438:12517:12519:12740:13069:13161:13229:13311:13357:21080,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 X-HE-Tag: lunch22_3b0b4dab9ff33 X-Filterd-Recvd-Size: 2699 Message-ID: <1432226404.20840.60.camel@perches.com> Subject: Re: [PATCH 1/2] dma: omap-dma: Fix line over 80 characters From: Joe Perches To: Vinod Koul Cc: Jagan Teki , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Williams Date: Thu, 21 May 2015 09:40:04 -0700 In-Reply-To: <20150521155934.GR3140@localhost> References: <1432149070-9569-1-git-send-email-jteki@openedev.com> <20150521155934.GR3140@localhost> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 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: 2005 Lines: 53 On Thu, 2015-05-21 at 21:29 +0530, Vinod Koul wrote: > On Thu, May 21, 2015 at 12:41:09AM +0530, Jagan Teki wrote: > > This patch fixes line over 80 characters warninings while > > running checkpatch.pl > > You should know 80 char is a warn not an error, and you should read the > Codingstyle documentation before you embark on these changes. > The guiding principle here is readablity and greapblity, anything which > breaks these is strict NO. Well, those abilities are at a minimum certainly goalposts and should be preferred over most everything else. > > diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c [] > > @@ -168,7 +168,8 @@ static inline struct omap_chan *to_omap_dma_chan(struct dma_chan *c) > > return container_of(c, struct omap_chan, vc.chan); > > } > > > > -static inline struct omap_desc *to_omap_dma_desc(struct dma_async_tx_descriptor *t) > > +static inline struct omap_desc *to_omap_dma_desc( > > + struct dma_async_tx_descriptor *t) > This makes it harder to read, if you see drivers the will do it: > > static inline struct omap_desc > *to_omap_dma_desc(struct dma_async_tx_descriptor *t) That's a relatively unusual style. The more common style is to keep the pointer on the same line as the return type like: static inline struct omap_desc * to_omap_dma_desc(struct dma_async_tx_descriptor *t) It's roughly 50:1 for the * on the 1st line. > > @@ -334,7 +336,7 @@ static void omap_dma_stop(struct omap_chan *c) > > if (val & (CCR_RD_ACTIVE | CCR_WR_ACTIVE)) > > dev_err(c->vc.chan.device->dev, > > "DMA drain did not complete on lch %d\n", > > - c->dma_ch); > > + c->dma_ch); > whats changes here? title says 80 char! spacing, there's an 8 char space where there could be a tab. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/