Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp499115yba; Thu, 9 May 2019 01:06:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCbqNEYhwgmNfb6ItwpwhkeJhW+QDmrL2Q+rxoSzT4c/qe1mEIwCG1QbQ+0gG5tzEKxM25 X-Received: by 2002:a17:902:8f88:: with SMTP id z8mr3368234plo.54.1557389182105; Thu, 09 May 2019 01:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557389182; cv=none; d=google.com; s=arc-20160816; b=IklWi89dhItqlsdWF0oCkjDiYH3GNSx/N7XXBUi5Sz6Pf4zRLCC2JSWVbnh2qXTBPf 175OYqVH98XLRdrt/o3pV3XVVKT0f9mQ03kWNgofO/zOZMfElJLATBWo8TcRq6saFHWV vIT1xXKkiSaPhVoEt95x1erTsmNCCW6oNr1zVGlCHrwHqFs63rrfyjuBFRkz+vwaan0/ /xy2AqCJPWrlDdmsgEORKGIWbgqtflO77GwnL1p0Pq+qEIQVpFxV+r2x3Nvhkt7F9k9J wmbP5jKITBcyVfTuu/Oa/40ogkygtUaDaOCSXmRKwnj1PRkjtVriaCuVWonUzcbPv1oe K2sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=s/uw7USTaNSyCKwmVOUQeNTMQC0GAAnII+6iY8OUFUE=; b=BfovdzPKtzJO9vmOBAF21Ywn7dVaed/e/G+7F1Wdoi+MjOoHZpe+szW5Fswcjvf1ly 52/pA+OrzuUH4L/PxByuaepC8BPD+51yL/7NOh4DutfX9Nj/C00NoNOqY7VuHblD/qrb ZjDUEG3x+f3Z8xMYg3kU12YLb2hzMYTrV3iO4e+8BZ6wJ2iPMjSeKWWClOxWDZvs2sGt n5mCQf2lO2OA3V50m4eyWaloOih81Ir7xxdp5RBkTonJYZRT6hXDPx6iazlzbG4i9SfN OLCy1xdH1InSrWmCNRww8GvYBegR3qiI/Dz1HrQofWKlO+KRUBLGDX5JVERfIDU7cHBw nS5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cm10si1857610plb.124.2019.05.09.01.06.05; Thu, 09 May 2019 01:06:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726561AbfEIIDs (ORCPT + 99 others); Thu, 9 May 2019 04:03:48 -0400 Received: from smtprelay0215.hostedemail.com ([216.40.44.215]:40533 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725963AbfEIIDs (ORCPT ); Thu, 9 May 2019 04:03:48 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id A754C180A8437; Thu, 9 May 2019 08:03:46 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:599:960:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3653:3871:3876:4321:5007:6299:8603:10004:10400:10848:11026:11658:11914:12048:12438:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21627:21740:30054:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: crown87_3c409a1aa411 X-Filterd-Recvd-Size: 1325 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA; Thu, 9 May 2019 08:03:45 +0000 (UTC) Message-ID: <3d1911051672d4d84b46dfa229b8c82c4a41813b.camel@perches.com> Subject: Re: [PATCH v4] checkpatch: add command-line option for TAB size From: Joe Perches To: Antonio Borneo , Andy Whitcroft , "Elliott, Robert (Servers)" Cc: linux-kernel@vger.kernel.org Date: Thu, 09 May 2019 01:03:44 -0700 In-Reply-To: <20190509072104.18734-1-borneo.antonio@gmail.com> References: <20190509072104.18734-1-borneo.antonio@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-05-09 at 09:21 +0200, Antonio Borneo wrote: > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -2224,7 +2229,7 @@ sub string_find_replace { > sub tabify { > my ($leading) = @_; > > - my $source_indent = 8; > + my $source_indent = $tabsize; > my $max_spaces_before_tab = $source_indent - 1; I didn't test this. Does this work properly if --tab-size=1 ? Maybe die if ($tabsize < 2); is necessary?