From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754176AbcH2RlN (ORCPT ); Mon, 29 Aug 2016 13:41:13 -0400 Received: from smtprelay0155.hostedemail.com ([216.40.44.155]:37141 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751195AbcH2RlM (ORCPT ); Mon, 29 Aug 2016 13:41:12 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2525:2553:2561:2564:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6119:7903:8985:9025:10004:10400:10848:11232:11658:11783:11914:12043:12740:13069:13311:13357:13439:13894:14181:14659:14721:21080:30054:30062: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:4,LUA_SUMMARY:none X-HE-Tag: men39_4458e4d399d39 X-Filterd-Recvd-Size: 2148 Message-ID: <1472492468.3425.52.camel@perches.com> Subject: Re: [Ksummit-discuss] checkkpatch (in)sanity ? From: Joe Perches To: Josh Triplett Cc: Arnd Bergmann , ksummit-discuss@lists.linuxfoundation.org, Greg KH , Sasha Levin , LKML Date: Mon, 29 Aug 2016 10:41:08 -0700 In-Reply-To: <20160829171651.GA27257@cloud> References: <1472330452.26978.23.camel@perches.com> <20160828223759.GA12993@sasha-lappy> <20160829071515.wqlpjccq7a3vk7u6@piout.net> <5149968.BflLUdM3a8@wuerfel> <1472474879.3425.30.camel@perches.com> <20160829171651.GA27257@cloud> 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 Mon, 2016-08-29 at 10:16 -0700, Josh Triplett wrote: > On Mon, Aug 29, 2016 at 05:47:59AM -0700, Joe Perches wrote: > > > > I generally don't run it on my own patches, mostly out > > of possibly misplaced confidence in my own adherence to > > the nominal kernel style.  It sometimes leads to mild > > regret over things like whitespace defects. > In the specific case of whitespace defects, does git diff not catch > those? > > For that matter, should we add a .gitattributes file to the kernel > enabling additional whitespace errors git knows how to catch?  git.git > has such a file. For reference: https://git-scm.com/docs/gitattributes https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration and here's the git.git .gitattributes file: $ cat .gitattributes  * whitespace=!indent,trail,space *.[ch] whitespace=indent,trail,space diff=cpp *.sh whitespace=indent,trail,space Using something like that for kernel git would be a good idea for trailing whitespace and space before HT. But aren't those the generic git default options now?