Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6574985ybc; Thu, 28 Nov 2019 01:39:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxz1kUhd3aRZt/FMkYrt/+I4OWahQC8BSpo5qCE6neKsVEgT9kY6JIP/kApX9b7MNfwDqb1 X-Received: by 2002:a50:f40c:: with SMTP id r12mr36536906edm.16.1574933964959; Thu, 28 Nov 2019 01:39:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574933964; cv=none; d=google.com; s=arc-20160816; b=h5jELOUbWpKOPvHaUwHGrm1vGd93Ygv7jKqRV4XNRWkxWibMxY2g/t6nliIJJu3Lvf 6GTqnft0On4R8bYkWTP/gAhReko/I4YTbsNUAAY+XcOIxkvwvf0RS6c9Z0g9Hsrwxks6 lex9eKBYFC/5itrs0iS4nq/BY7MsBBzqD+HkW/mA1dbD5/1iirLYeQwO1Bf2+iq71oSb G186VFEQRbOo+ATxD9oyYouPFFCfEq+5/Q4m0uYzhlB6oOZrxWdBeQwFUbkq770e34ZP rSk7TpWXDm3tTmY51zh/n7R8vRzysdxOejAxYMdgtqvyLcm2VE3wUJrwTu5P2/3OFjUM sc7Q== 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=6eM0TGD0e25EDillB3SWKCQJo8zb2ry49Rc9Yl41DDA=; b=POsh9s+fvBVXA2Pd+Ydt+0+2znFjzf2+wNyQc0bLQ5ZOeZ00hS/0b/5P7opWle8vtO L6ZasQQTVkLPgN7qS7GfnrzOHZbZIm1PHO31Qn5XoE2LNwWHpWSqdgm3atr6uJZ0p427 DlRLDX0WEpbIO0i95tjiwirdO6JdjDOdu4ldkKztdOxcEwiJMoITejQ5fovP0QefbPow U2Z8FHf2CoKPmJgdpb1F5TAcDXiWI+xy6gKfUW8xwV77/p5+0C9/X9pofiDBR1AxepMq 2Rcf/zqlVA2Oo2TqyVNscZdTb/TOJ3OwcbNhMfPNyQX0COErpDDbpRmRWhXOdH3ho8TS jpEQ== 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 s16si11260854eju.337.2019.11.28.01.39.00; Thu, 28 Nov 2019 01:39:24 -0800 (PST) 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 S1726561AbfK1JfR (ORCPT + 99 others); Thu, 28 Nov 2019 04:35:17 -0500 Received: from smtprelay0084.hostedemail.com ([216.40.44.84]:60116 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726252AbfK1JfR (ORCPT ); Thu, 28 Nov 2019 04:35:17 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 4BACA4DCF; Thu, 28 Nov 2019 09:35:16 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3871:3872:3874:4321:5007:10004:10400:10848:11232:11658:11914:12048:12297:12663:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21451:21627:30054:30090: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:1,LUA_SUMMARY:none X-HE-Tag: touch72_681114d104324 X-Filterd-Recvd-Size: 1652 Received: from XPS-9350.home (unknown [47.151.135.224]) (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA; Thu, 28 Nov 2019 09:35:15 +0000 (UTC) Message-ID: Subject: Re: [PATCH] checkpatch: Look for Kconfig indentation errors From: Joe Perches To: Jani Nikula , Krzysztof Kozlowski , Andy Whitcroft , linux-kernel@vger.kernel.org Cc: Pierre-Louis Bossart Date: Thu, 28 Nov 2019 01:34:47 -0800 In-Reply-To: <87a78gnyaz.fsf@intel.com> References: <1574906800-19901-1-git-send-email-krzk@kernel.org> <87a78gnyaz.fsf@intel.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 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-11-28 at 11:29 +0200, Jani Nikula wrote: > On Thu, 28 Nov 2019, Krzysztof Kozlowski wrote: > > Kconfig should be indented with one tab for first level and tab+2 spaces > > for second level. There are many mixups of this so add a checkpatch > > rule. > > > > Signed-off-by: Krzysztof Kozlowski > > I agree unifying the indentation is nice, and without something like > this it'll start bitrotting before Krzysztof's done fixing them all... I > think there's been quite a few fixes merged lately. > > I approve of the idea, but I'm clueless about the implementation. I think that a grammar, or a least an array of words that are supposed to start on a tab should be used here.