From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08AA2C432C0 for ; Thu, 28 Nov 2019 09:35:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D9B2A216F4 for ; Thu, 28 Nov 2019 09:35:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726593AbfK1JfR (ORCPT ); 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-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.