Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbdDCTGs (ORCPT ); Mon, 3 Apr 2017 15:06:48 -0400 Received: from smtprelay0123.hostedemail.com ([216.40.44.123]:39325 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752143AbdDCTGr (ORCPT ); Mon, 3 Apr 2017 15:06:47 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::,RULES_HIT:41:355:379:541:599:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3653:3865:3866:3868:3871:3872:3873:4321:5007:10004:10400:10848:11026:11232:11473:11658:11914:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:30012:30054: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: note75_3a8906f8fe71c X-Filterd-Recvd-Size: 1726 Message-ID: <1491246400.27353.59.camel@perches.com> Subject: Re: [PATCH v1] checkpatch: test missing initial blank line in block comment From: Joe Perches To: Hugues Fruchet , Andy Whitcroft Cc: linux-kernel@vger.kernel.org Date: Mon, 03 Apr 2017 12:06:40 -0700 In-Reply-To: <1491206895-24332-2-git-send-email-hugues.fruchet@st.com> References: <1491206895-24332-1-git-send-email-hugues.fruchet@st.com> <1491206895-24332-2-git-send-email-hugues.fruchet@st.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.3-0ubuntu0.1 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: 829 Lines: 33 On Mon, 2017-04-03 at 10:08 +0200, Hugues Fruchet wrote: > Warn when block comments are not starting with blank comment: > > /* multiple lines > * block comment, > * => warning > */ > > /* > * multiple lines > * block comment, > * => no warning > */ > > Exception made for networking files where rule is the > exact opposite. I recall there was some reason I didn't do this when adding the block comment code, but I don't recall what it was. Perhaps it was the initial line of files. Maybe your $realline > 2 test fixes it. Maybe not. Dunno. If you run this against the entire kernel code using a unique test type and not BLOCK_COMMENT_STYLE are there any false positives? Maybe test with something like: $ git ls-files -- "*.[ch]" | \ xargs --max-args 20 ./scripts/checkpatch.pl -f --types=