Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932233AbdGKFYa (ORCPT ); Tue, 11 Jul 2017 01:24:30 -0400 Received: from smtprelay0039.hostedemail.com ([216.40.44.39]:44371 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932109AbdGKFY3 (ORCPT ); Tue, 11 Jul 2017 01:24:29 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:69:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:1801:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:4605:5007:6119:7903:8531:9149:10004:10400:10848:11026:11232:11233:11473:11658:11914:12043:12295:12438:12555:12740:12760:12895:12986:13439:14096:14097:14180:14181:14659:14721:21060:21080:21324:21451:21627:30012:30045:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: angle60_60e666c1d694b X-Filterd-Recvd-Size: 3875 Message-ID: <1499750664.4457.5.camel@perches.com> Subject: Re: [greybus-dev] [PATCH v2] staging: greybus: arche: wrap over-length lines From: Joe Perches To: Viresh Kumar , Frans Klaver Cc: Mitchell Tasman , driverdevel , Greg Kroah-Hartman , Johan Hovold , "linux-kernel@vger.kernel.org" , greybus-dev@lists.linaro.org Date: Mon, 10 Jul 2017 22:24:24 -0700 In-Reply-To: <20170710093112.GI2928@vireshk-i7> References: <20170709212809.14277-1-tasman@leaflabs.com> <20170710002506.15036-1-tasman@leaflabs.com> <20170710044632.GD2928@vireshk-i7> <20170710093112.GI2928@vireshk-i7> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 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: 2631 Lines: 48 On Mon, 2017-07-10 at 15:01 +0530, Viresh Kumar wrote: > On 10-07-17, 11:30, Frans Klaver wrote: > > On Mon, Jul 10, 2017 at 6:46 AM, Viresh Kumar wrote: > > > Hi Mitchell, > > > > > > On 09-07-17, 20:25, Mitchell Tasman wrote: > > > > Adjust formatting of various statements to keep line length within > > > > the 80 column limit preferred by the Linux kernel coding style. > > > > > > We try to follow that most of the time, but the end result should be easily > > > readable. If it isn't, then we just ignore the rule. > > > > > > > Signed-off-by: Mitchell Tasman > > > > --- > > > > Changes in v2: Add back a missing space in a comment > > > > > > > > drivers/staging/greybus/arche-platform.c | 29 +++++++++++++++++++---------- > > > > 1 file changed, 19 insertions(+), 10 deletions(-) > > > > > > > > diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c > > > > index eced2d2..eedd239 100644 > > > > --- a/drivers/staging/greybus/arche-platform.c > > > > +++ b/drivers/staging/greybus/arche-platform.c > > > > @@ -172,15 +172,21 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid) > > > > if (arche_pdata->wake_detect_state == WD_STATE_BOOT_INIT) { > > > > if (time_before(jiffies, > > > > arche_pdata->wake_detect_start + > > > > - msecs_to_jiffies(WD_COLDBOOT_PULSE_WIDTH_MS))) { > > > > - arche_platform_set_wake_detect_state(arche_pdata, > > > > - WD_STATE_IDLE); > > > > + msecs_to_jiffies( > > > > + WD_COLDBOOT_PULSE_WIDTH_MS))) { > > > > + arche_platform_set_wake_detect_state( > > > > > > We don't break the lines like this in kernel to satisfy the 80 column width > > > rule. Surely, some places would have similar code, but in general this isn't > > > recommended. And that's why we never bothered about 80 column rule in this and > > > below cases. > > > > In cases like this, one could argue that you should start looking at > > the level of indentation, rather than the line length per se. After > > all, the documentation states that "if you need more than 3 levels of > > indentation, you're screwed anyway, and you should fix your program". > > And I completely agree to that :) Another thing to consider is to s/arche_platform_// as the identifier lengths are just way too long.