Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3679834pxu; Sun, 20 Dec 2020 11:15:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8Z3FLvijQiPJBalTqZPY4TceU0l40K3Df4VCDAaKfjmR+KaKEvlwlcSeIzXALDWgH2BjD X-Received: by 2002:a17:906:7215:: with SMTP id m21mr3175371ejk.248.1608491744253; Sun, 20 Dec 2020 11:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608491744; cv=none; d=google.com; s=arc-20160816; b=wxlGxtVNl9/wtFTdb4HM+V3JuRUpv6bSpiu0vT6X+NvxEZSgvwPT7MrzQUas8moO7w Ed1SriuEroCVH1UfX2VPimtjtWGu2/U0C+nZ+d6rPsX1Eu68qK0rK4EJHDjZnKO6uyn2 Y6/5B5i0841UGYgbTwueEjsR94qNSdAz5Pi6NMxwjIy3iSWrqIuE9ouXlTVjPssN8HX3 mRwKQ+Oe2UdT+n2mxhEZqJVtW8ONqrzB07/NkX+M2JovSNqQkRH+355DIy9PXU5ngBjy 4vj6wOTT4xRMK5AT3vPjfr/rp1eTdSINYx0eJ1RUhsYPBp/F7gs//VLKa+Og2ThgRN+u OvTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=4HJSxm+zOOtNl9wNGipDFYiP7vxIUpJ3IrGTDSSdVNw=; b=LVoAURAlDWiNnN444oF2fg3V82BPlgPNM7/Wc+j2JCEmFYXdZZOiOAjBJOtP3HAVvs V9j+MkzdZS/sQOzj83wSvNsFVzV+xlXHMnHE+hsnU9fZBql298m73fB2JK0rhZRox7Xm uNZLkfqAbpqJPMf2eoP8p0HmVPeyscfXwN1N4kQT4fB6EvYM3pf3RQxK/ImggGe6UIt2 BQ9BtHT7pdJ6L/8Bza8fzCDJYl/u/Kn4pXuFp7/A4hQfQoPLGqUnoykhW7wsG9EOr1u+ DzcWi/K3+68g42s3sgZBEeviiH4xwBBdZOvD2pOIyp71WZ0/T4owl1l+lC7LUEudapY7 Oj4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si7655986ejz.602.2020.12.20.11.15.07; Sun, 20 Dec 2020 11:15:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727311AbgLTTNc (ORCPT + 99 others); Sun, 20 Dec 2020 14:13:32 -0500 Received: from smtprelay0082.hostedemail.com ([216.40.44.82]:32852 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726805AbgLTTNc (ORCPT ); Sun, 20 Dec 2020 14:13:32 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 79EF9100E7B45; Sun, 20 Dec 2020 19:12:51 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:800:960:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2559:2562:2828:2908:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3872:3874:4321:4605:5007:10004:10400:10848:11232:11658:11914:12043:12297:12740:12895:13069:13141:13230:13311:13357:13439:13894:14181:14659:14721:21080:21451:21627:30054: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: dog98_1f031b327451 X-Filterd-Recvd-Size: 2189 Received: from XPS-9350.home (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Sun, 20 Dec 2020 19:12:50 +0000 (UTC) Message-ID: <5e7eae6b12df8fefc900930ffc12f80a9bfd643c.camel@perches.com> Subject: Re: [PATCH 2/2] checkpatch: kconfig: add missing types to regex From: Joe Perches To: Nicolai Fischer , linux-kernel@vger.kernel.org Cc: apw@canonical.com, johannes.czekay@fau.de, linux-kernel@i4.cs.fau.de Date: Sun, 20 Dec 2020 11:12:49 -0800 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-12-14 at 11:24 +0100, Nicolai Fischer wrote: > Kconfig parsing does not recognise all type attributes. > This adds the missing 'int', 'sting' and 'hex' types. > > Signed-off-by: Nicolai Fischer > Co-developed-by: Johannes Czekay > Signed-off-by: Johannes Czekay [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -3321,7 +3321,7 @@ sub process { > ? next if ($f =~ /^-/); > ? last if (!$file && $f =~ /^\@\@/); > ? > > - if ($lines[$ln - 1] =~ /^\+\s*(?:bool|tristate|prompt)\s*["']/) { > + if ($lines[$ln - 1] =~ /^\+\s*(?:bool|tristate|int|hex|string|prompt)\s*["']/) { int and hex uses are not required to be followed either a " or ' For that matter, it's not required for tristate, bool or string Likely this should be ["'$] $ git grep -P -oh '^\s*(?:bool|tristate|int|hex|string|prompt)\b\s*\S?' -- '*/Kconfig*' | \ sed -r -e 's/^\s+//' -e 's/\s+/ /g' | \ sort | uniq -c | sort -rn 8558 tristate " 6314 bool " 2082 bool 843 tristate 308 prompt " 286 int " 106 tristate ' 93 int 84 hex " 66 string " 25 hex 21 bool ' 18 string 5 hex ' 3 string p 2 string ( 1 string ' 1 int. 1 bool # 1 bool