Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2464861pxu; Mon, 14 Dec 2020 03:04:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxr7o46KzVg44wzL4GNm8M9w2YlVVMgCtZ5qlJ+xC9uNy6Plj27lS9QWUyiInS+qIFoSvFy X-Received: by 2002:a17:906:814a:: with SMTP id z10mr21391289ejw.96.1607943895333; Mon, 14 Dec 2020 03:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607943895; cv=none; d=google.com; s=arc-20160816; b=FWGVOAUKVh9Lec9P0mmIjkeAH6S8VMeBu1ZbsqRqg4iGMkgxGWDKs364uD1WIyHTe+ 0zP66mwM3xu5p9AZBING8+bH9SStbGhhU4KLzgyVXrgJwNDZt6ZQJHRI/YjkOoXgRSe1 Rj6WA9fxoFMWF2y4apP/k74jjTmqSWgSWmloWIu3VgHutSr50rJt7T+5kH7ynhS5lQsv 5YpR+6U/PCBPrAbzeTQNSjfSpdmtefIdf0PJMDe/zYsNPHCUcm8kS6rdvjuIVTWvs12d n4xcZKWoqrLKiyD1wmmdWJCTTckZnlQDmCDDf5sEKk+KnUWxR7FyJ57LdPEhJ7bbnjZz LnpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:cc:to:subject:from :dkim-signature; bh=vLmHwyjVR3cGo8R3haiwkpdJDcdXTIM/h6lcdSnDy24=; b=jrxqk371u/8HJwVPvMhgj/hylkMyulFk5C9XZ5rvvXdnGzo3q/R9CoxcYb8ADzHAFg s+iVtw7LaiXop8KBi/a2ED+1x39WKdu0BoeiCPEorZyohvBEgVliHOsWhC/Kc4mO1K3n v+UN8r0lodGQsjfnb7Pc/YPBfOGC52dRpXIOaOucfddt0763l2LOudaIigj7RgnViGuC JMyP8LXqPrdqUEHVLxT4OiTiNOWCibjnQCxdzthYzdtnLj6KKgN4z/c+rwInfiF2cBdB ofQUVR8VnDCtJtFxRZGioiVU7o7V6KiN7b+oQo4avA11u6b2Lz0iHlZTR/7u73B1LBUE VscQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fau.de header.s=fau-2013 header.b=oJmZKtUo; 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 h14si10012022eje.368.2020.12.14.03.04.32; Mon, 14 Dec 2020 03:04:55 -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=oJmZKtUo; 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 S2406958AbgLNKZb (ORCPT + 99 others); Mon, 14 Dec 2020 05:25:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403999AbgLNKZM (ORCPT ); Mon, 14 Dec 2020 05:25:12 -0500 Received: from mx-rz-2.rrze.uni-erlangen.de (mx-rz-2.rrze.uni-erlangen.de [IPv6:2001:638:a000:1025::15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47378C0613D3 for ; Mon, 14 Dec 2020 02:24:32 -0800 (PST) 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-2.rrze.uni-erlangen.de (Postfix) with ESMTPS id 4CvcvL5M4JzPkXL; Mon, 14 Dec 2020 11:24:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fau.de; s=fau-2013; t=1607941470; bh=vLmHwyjVR3cGo8R3haiwkpdJDcdXTIM/h6lcdSnDy24=; h=From:Subject:To:Cc:Date:From:To:CC:Subject; b=oJmZKtUoeqdTUZKyhYoz7IjJlJUNs5/qIuCrSuhaL5IAxSMU03AI8hjeTkIex2RNe 3G5z/x/0/yXt3unbw2LXzAybCXWZofEcRDYHYDC6c5iY5Vlf/fj0sQbfqNFvHvm7vN iklfSUuDRCWoYz5cqVSS9PYYa+JvVkyGG/xoesDEHKplajyLZ2yL5HcOC7a9nzFLOX VvuUkWs2V425US77ko2b1PLwuG7W1CfGjNywGTdUZzURbeX2i55ngj8d+zpxzUsrLc v9KRMcRqHqh3pFuFTQCEOek5iLXviba2PXI242XzwSGIsttn8J1F2eD9tNzBx9F2Do OeI6LSFZxcEZg== X-Virus-Scanned: amavisd-new at boeck1.rrze.uni-erlangen.de (RRZE) X-RRZE-Flag: Not-Spam X-RRZE-Submit-IP: 172.17.10.69 Received: from [10.21.2.135] (rat69.ratnet.stw.uni-erlangen.de [172.17.10.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: U2FsdGVkX18EA+q0+mlMHVxP9GULIaYVhnBjFcKkn9s=) by smtp-auth.uni-erlangen.de (Postfix) with ESMTPSA id 4CvcvJ3x8XzPk0M; Mon, 14 Dec 2020 11:24:28 +0100 (CET) From: Nicolai Fischer Subject: [PATCH 2/2] checkpatch: kconfig: add missing types to regex To: linux-kernel@vger.kernel.org Cc: joe@perches.com, apw@canonical.com, johannes.czekay@fau.de, linux-kernel@i4.cs.fau.de Message-ID: Date: Mon, 14 Dec 2020 11:24:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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', 'sting' and 'hex' types. Signed-off-by: Nicolai Fischer Co-developed-by: Johannes Czekay Signed-off-by: Johannes Czekay --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5cd98f2b75f6..442298cadab7 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.28.0