From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756201AbcH1XU5 (ORCPT ); Sun, 28 Aug 2016 19:20:57 -0400 Received: from smtprelay0253.hostedemail.com ([216.40.44.253]:53170 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756133AbcH1XU4 (ORCPT ); Sun, 28 Aug 2016 19:20:56 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599: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:1981:2194:2199:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4250:4321:5007:7903:8957:10004:10400:10450:10455:10848:11026:11232:11473:11658:11783:11914:12438:12740:13161:13229:13439:13894:14659:14721:14824:19904:19999:21080:21433:30054:30064:30070: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:1,LUA_SUMMARY:none X-HE-Tag: wool47_420130fda8f62 X-Filterd-Recvd-Size: 3438 Message-ID: <1472426452.26978.151.camel@perches.com> Subject: Re: checkkpatch (in)sanity ? From: Joe Perches To: "Levin, Alexander" Cc: Sasha Levin , Greg KH , LKML , "ksummit-discuss@lists.linuxfoundation.org" Date: Sun, 28 Aug 2016 16:20:52 -0700 In-Reply-To: <20160828223759.GA12993@sasha-lappy> References: <1472330452.26978.23.camel@perches.com> <20160828005636.GB19088@sasha-lappy> <1472348579.26978.47.camel@perches.com> <20160828023807.GC19088@sasha-lappy> <1472404557.26978.84.camel@perches.com> <20160828223759.GA12993@sasha-lappy> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.2-0ubuntu3 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 On Sun, 2016-08-28 at 18:37 -0400, Levin, Alexander wrote: > On Sun, Aug 28, 2016 at 01:15:57PM -0400, Joe Perches wrote: > > On Sat, 2016-08-27 at 22:47 -0400, Levin, Alexander wrote: > > > Would you agree that by default we shouldn't show anything that's > > > not an error/defect? > > Not particularly, no. > I think that we need to figure out this disagreement first then. My > claim is that checkpatch's output isn't useful. [] > It'll be interesting to hear from these people about their view of > checkpatch, but IMO when on average there are more issues than commits > I can suggest two possible causes: > >  1. People are used to ignore checkpatch warnings. >  2. People aren't using checkpatch. > > Can you really make the claim that this is how checkpatch is supposed > to be working? .  I make no particular claims about checkpatch. I think checkpatch isn't particularly useful for those thoroughly inculcated in what style the kernel uses and is more useful for infrequent or new submitters. The long time submitters and key maintainers are already pretty consistent about coding style. It would be good to examine the specific messages though. For instance, Thomas Gleixner's messages for 200 commits:      81 WARNING:COMMIT_LOG_LONG_LINE      71 WARNING:BAD_SIGN_OFF      37 WARNING:LONG_LINE      22 WARNING:AVOID_BUG      17 ERROR:SPACING      16 WARNING:TYPO_SPELLING      13 WARNING:UNSPECIFIED_INT       7 ERROR:GIT_COMMIT_ID       6 WARNING:MINMAX       2 WARNING:PREFER_PR_LEVEL       2 WARNING:LONG_LINE_COMMENT       2 WARNING:LEADING_SPACE       2 WARNING:FILE_PATH_CHANGES       2 ERROR:CODE_INDENT       1 WARNING:SUSPECT_CODE_INDENT       1 WARNING:SPACING       1 WARNING:ONE_SEMICOLON       1 WARNING:LINE_SPACING       1 WARNING:BLOCK_COMMENT_STYLE       1 ERROR:TRAILING_STATEMENTS       1 ERROR:INITIALISED_STATIC       1 CHECK:PARENTHESIS_ALIGNMENT 28 ERRORs and a lot more WARNINGs It seems that most of the BAD_SIGN_OFF uses are where he signed his original patches and then did something like git-am -s on those same patches. The COMMIT_LOG_LONG_LINE messages are almost all just slightly over the generic 80 column output when used with just "git log". I think the rest of the messages are reasonable and generally follow CodingStyle.