Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754144AbbETUY0 (ORCPT ); Wed, 20 May 2015 16:24:26 -0400 Received: from smtprelay0228.hostedemail.com ([216.40.44.228]:44418 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754059AbbETUYX (ORCPT ); Wed, 20 May 2015 16:24:23 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1963:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3871:3872:3873:4321:5007:6261:10004:10400:10848:11026:11232:11658:11914:12043:12296:12438:12517:12519:12740:13069:13161:13229:13311:13357:14096:14097: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: cats06_430ea1978d645 X-Filterd-Recvd-Size: 2254 Message-ID: <1432153459.20840.4.camel@perches.com> Subject: Re: [PATCH 1/2] dma: omap-dma: Fix line over 80 characters From: Joe Perches To: Jagan Teki Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Williams , Vinod Koul Date: Wed, 20 May 2015 13:24:19 -0700 In-Reply-To: <1432149070-9569-1-git-send-email-jteki@openedev.com> References: <1432149070-9569-1-git-send-email-jteki@openedev.com> 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: 1586 Lines: 45 On Thu, 2015-05-21 at 00:41 +0530, Jagan Teki wrote: > This patch fixes line over 80 characters warninings while > running checkpatch.pl These changes aren't necessary. If you're really going to do this, please change the style of the functions you are using. > 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_nochan, 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 isn't particularly human readable. If the return type is long, it's sometimes better to use a separate line for the return type, then put the function on another line like: static inline struct omap_desc * to_omap_dma_desc(struct dma_async_tx_descriptor *t) > @@ -707,7 +710,8 @@ static enum dma_status omap_dma_tx_status(struct dma_chan *chan, > spin_lock_irqsave(&c->vc.lock, flags); > vd = vchan_find_desc(&c->vc, cookie); > if (vd) { > - txstate->residue = omap_dma_desc_size(to_omap_dma_desc(&vd->tx)); > + txstate->residue = omap_dma_desc_size( > + to_omap_dma_desc(&vd->tx)); This is unpleasant to read. Just let some lines be > 80 columns. -- 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/