Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754505AbbBKUnK (ORCPT ); Wed, 11 Feb 2015 15:43:10 -0500 Received: from smtprelay0192.hostedemail.com ([216.40.44.192]:53377 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753139AbbBKUnI (ORCPT ); Wed, 11 Feb 2015 15:43:08 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:967:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1801:2393:2525:2553:2561:2564:2682:2685:2693:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4605:5007:6119:6261:6742:7903:7974:9025:9121:10004:10400:10450:10455:10848:11232:11233:11658:11914:12043:12517:12519:12663:12740:13069:13153:13161:13228:13229:13311:13357:14096:14097:19904:19999: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: wood39_38167138f1c0b X-Filterd-Recvd-Size: 3506 Message-ID: <1423687383.15343.22.camel@perches.com> Subject: Re: checkpatch induced patches... From: Joe Perches To: Pavel Machek Cc: Richard Weinberger , Dan Carpenter , Andrew Morton , "devel@driverdev.osuosl.org" , gmate.amit@gmail.com, Greg KH , Bas Peters , LKML , Pushpendra Singh , manuel.schoelling@gmx.de, Sudip Mukherjee , Kalle Valo Date: Wed, 11 Feb 2015 12:43:03 -0800 In-Reply-To: <20150211202441.GD29636@amd> References: <1423573373-820-2-git-send-email-pushpendra.singh@smartplayin.com> <20150210141307.GB15593@sudip-PC> <20150211083328.GJ5206@mwanda> <1423647637.15343.16.camel@perches.com> <20150211105122.GN5206@mwanda> <1423677629.15343.18.camel@perches.com> <20150211183615.GQ5206@mwanda> <1423686025.15343.20.camel@perches.com> <20150211202441.GD29636@amd> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.7-0ubuntu1 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: 2066 Lines: 49 On Wed, 2015-02-11 at 21:24 +0100, Pavel Machek wrote: > On Wed 2015-02-11 12:20:25, Joe Perches wrote: > > On Wed, 2015-02-11 at 21:02 +0100, Richard Weinberger wrote: > > > On Wed, Feb 11, 2015 at 7:36 PM, Dan Carpenter wrote: > > > > On Wed, Feb 11, 2015 at 10:00:29AM -0800, Joe Perches wrote: > > > >> I'm half tempted to submit some patch like this to > > > >> make it difficult to use checkpatch on files outside > > > >> of drivers/staging. > > > >> o Only allow checkpatch to be used with the -f/--file > > > >> option for drivers/staging/ > > > >> o Add an undocumented --force command line option > > > > Sure. We could try that. I once sent a patch to make -f generate a > > > > warning about not wasting people's time, but this is also ok. > > > >> o Make --strict the default for drivers/staging [] > > > FYI: We had already a heated debate on that topic. > > > https://lkml.org/lkml/2014/7/17/415 [] > > This is basically a patch that implements my suggestion > > in that thread. > > https://lkml.org/lkml/2014/7/17/427 > > > > I wonder if the undocumented --force option is acceptable > > to Pavel and Kalle. > Undocumented options are evil... You can add warning about not wasting > people's time in --force documentation... Yeah, I had added --force to the help text then removed it before sending, so I suppose adding a warning there is OK too. Nobody reads the --help text anyway. Dan/Andrew/Greg? You got a preference? Maybe some help/warning text like: --force Without --force, checkpatch will not scan files using -f or --file outside of drivers/staging/... Do not use this option merely to create potential patches that are uncompiled or untested. -- 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/