Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp7825005pxu; Sat, 26 Dec 2020 06:11:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGSIrBDBjb4PL5nw8AaWHv6nYQk4e9x633iql6lsm8KkyyvMHzAsI+EI1v48bsllnVxmc5 X-Received: by 2002:a50:fc83:: with SMTP id f3mr35865584edq.219.1608991871054; Sat, 26 Dec 2020 06:11:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608991871; cv=none; d=google.com; s=arc-20160816; b=WKHLzauMD8LU1295zmQEzegtxPw6mBZes4wSpFrWSs5rFAaErllQU41+kSX0LlvraI ojmnw7xrHCVZwcOVQcTbsERdbc3kK1aCjg0qF/Gw/E1WTpOeFq22iAEf0YFC/YnC6Zek UeN7pyUAGUwQ89bUK3RqFDBrIzFDjg7d3kQ/A4X7HQvqq0tzHkBWU7sKB87meEEO7tgs hJzRfUizEeoicIybrIPBvrF09lJVwfXRFg6c/U5HkLlM+Xg1JV2XUJoK80BkBAw0UVgT rXyR9toSnwALxQj8ezNjXtRuCuf4snsft9AE/URNRLSYIETqu+uI83kv2NOS1UGwYbQ/ Mr4A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iNOT2JYpTFWhTDjGGfUfeYF9aHjIDqfHF2VFlSHPizc=; b=pfcaSbtkF05sjv6mR7BVlurYTV7eAnXSeqAPydTkZjacQMZp8OL9PCXehdGHINUcLS KIv4i0VUI8HRMcGCfmf96r2O4zdAEJ0ruMnokJ+7ONxIvE/pEHJZCwsZxmCcC/M1JZcI ZeOoKdNyFPLb6ghCrMM5BBenyEenPXrIchodxGE6hAoy5vM8P8j5FOUALqwHrh/QgfBV sRky/8zlL2xEia9Vhax+3kQ81S5GH0tbNeCLTGFK/EbhUmeMk6tv2xUXV+4hZdeyfoOL b+2eb3nK8kM2ZzUmeK/dzpj4jUsTAz3DuWU9L63QhNfaCh/RpjLLCQdU3DO5zPXWivsj oLaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fau.de header.s=fau-2013 header.b="WtPgKxr/"; 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 cb24si17029699edb.552.2020.12.26.06.10.48; Sat, 26 Dec 2020 06:11:11 -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; dkim=pass header.i=@fau.de header.s=fau-2013 header.b="WtPgKxr/"; 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 S1726196AbgLZOHa (ORCPT + 99 others); Sat, 26 Dec 2020 09:07:30 -0500 Received: from mx-rz-1.rrze.uni-erlangen.de ([131.188.11.20]:54687 "EHLO mx-rz-1.rrze.uni-erlangen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbgLZOH1 (ORCPT ); Sat, 26 Dec 2020 09:07:27 -0500 Received: from mx-rz-smart.rrze.uni-erlangen.de (mx-rz-smart.rrze.uni-erlangen.de [IPv6:2001:638:a000:1025::1e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mx-rz-1.rrze.uni-erlangen.de (Postfix) with ESMTPS id 4D35GF6033z8v55; Sat, 26 Dec 2020 15:06:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fau.de; s=fau-2013; t=1608991605; bh=iNOT2JYpTFWhTDjGGfUfeYF9aHjIDqfHF2VFlSHPizc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:To:CC: Subject; b=WtPgKxr/RH5oq7vdj/FReTaWhdk9xRre+ow4OqD18naiNVF+wxNEgQdDTbfmAeI4v cNhOjBeI6sOZSb+aKGy9QLNwkmrq4AvRFZ+SZSdM8Wpqe1LjeUHoXXS2zfH1O+GYtx DG0YJbbL7hJCDF8bJrpGdCBjE/MbP7tpANlQLcUF8s1efio4RfE+x5Y7cmiDOlXylI AEZ3paEuURuKsrEAaszSR/fu7sthAmbIPW/uyK6/F+xKQzJtr7dQSxRrFkgd8kfzI0 vrG2ney8fDCq/PMfr2+FBx0CfgI5OR1/PRG94yCUS5iHLJzkZ5nYHNxwJ2R9DsUkpu Qt19//xkerekg== X-Virus-Scanned: amavisd-new at boeck2.rrze.uni-erlangen.de (RRZE) X-RRZE-Flag: Not-Spam X-RRZE-Submit-IP: 2a02:810d:8080:2d9f::1276 Received: from x1.nicolai.tech (unknown [IPv6:2a02:810d:8080:2d9f::1276]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: U2FsdGVkX18/cHYsg9HsPckpzoqh40FeRv/9Kt6DISQ=) by smtp-auth.uni-erlangen.de (Postfix) with ESMTPSA id 4D35GC3W3Jz8sYn; Sat, 26 Dec 2020 15:06:43 +0100 (CET) From: Nicolai Fischer To: linux-kernel@vger.kernel.org Cc: apw@canonical.com, johannes.czekay@fau.de, linux-kernel@i4.cs.fau.de, joe@perches.com, akpm@linux-foundation.org Subject: [PATCH v2 2/4] checkpatch: kconfig: add missing types to regex Date: Sat, 26 Dec 2020 15:05:09 +0100 Message-Id: <20201226140511.662368-3-nicolai.fischer@fau.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201226140511.662368-1-nicolai.fischer@fau.de> References: <20201226140511.662368-1-nicolai.fischer@fau.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kconfig parsing does not recognise all type attributes. This adds the missing 'int', 'string' and 'hex' types. Co-developed-by: Johannes Czekay Signed-off-by: Johannes Czekay Signed-off-by: Nicolai Fischer --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f6fd811c54a0..c86a971a3205 100755 --- 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*(?:["'].*)?$/) { $is_start = 1; } elsif ($lines[$ln - 1] =~ /^\+\s*help$/) { $length = -1; -- 2.29.2