Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932382AbcC2Rid (ORCPT ); Tue, 29 Mar 2016 13:38:33 -0400 Received: from smtprelay0146.hostedemail.com ([216.40.44.146]:60581 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753130AbcC2Ric (ORCPT ); Tue, 29 Mar 2016 13:38:32 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 30,2,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:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3871:3872:3873:3874:4321:5007:7903:10004:10400:10848:11026:11232:11658:11783:11914:12043:12048:12294:12296:12438:12517:12519:12740:13069:13255:13311:13357:13439:13523:13524:13894:14181:14659:14721:21080:21212:21324:30045:30054: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:6,LUA_SUMMARY:none X-HE-Tag: form09_fc97153a7d58 X-Filterd-Recvd-Size: 2025 Message-ID: <1459273107.25110.91.camel@perches.com> Subject: Re: [PATCH 3/3] staging: fwserial: (coding style) Rewriting a call to a long function From: Joe Perches To: Dominique van den Broeck , Greg Kroah-Hartman , Peter Hurley , Shraddha Barke , Radek Dostal Cc: linux-kernel@vger.kernel.org Date: Tue, 29 Mar 2016 10:38:27 -0700 In-Reply-To: <1459271662-14990-3-git-send-email-domdevlin@free.fr> References: <1459271662-14990-1-git-send-email-domdevlin@free.fr> <1459271662-14990-3-git-send-email-domdevlin@free.fr> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.2-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 952 Lines: 28 On Tue, 2016-03-29 at 19:14 +0200, Dominique van den Broeck wrote: > Fixing a lone row exceeding 80 columns so the only remaining warnings > emitted by checkpatch.pl are missing comments on spinlocks and memory > barriers. [] > diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c [] > @@ -1343,9 +1343,11 @@ static int fwtty_break_ctl(struct tty_struct *tty, int state) > ? > ? if (state == -1) { > ? set_bit(STOP_TX, &port->flags); > - ret = wait_event_interruptible_timeout(port->wait_tx, > - ???????!test_bit(IN_TX, &port->flags), > - ???????10); > + ret = > + wait_event_interruptible_timeout(port->wait_tx, > + ?!test_bit(IN_TX, &port->flags), > + ?10); Does this really look better to you? Long identifiers like "wait_event_interruptible_timeout" (32 chars) make using 80 columns a bit silly. Please remember checkpatch is a stupid script and that not every warning it emits is dicta.