Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13050125pxu; Sat, 2 Jan 2021 23:53:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9Td8v6BMAHVGXNsPZdfn84KqgNhLHP5uyh+SOl4+wB+Apmuq/qKr3D10ZvI8noKdgorb2 X-Received: by 2002:a17:906:168f:: with SMTP id s15mr61355155ejd.180.1609660409154; Sat, 02 Jan 2021 23:53:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609660409; cv=none; d=google.com; s=arc-20160816; b=dvGmbn3UiY05Plc+2UpUab1IBpv8s5eyZ3/+w58Ps26yLrnS9hzNG4gf33ezW1b32M fGRz3fyFrlCGbs8EOKryfrEE4yUcp63kKMW6QT5Wqd5zasWhp/+sDFH4VR8AmUGnemLr WBCkUeRwXr4OBRTfL4b7upsxF/REn8AOl+prrsP1dN5MenwuACh08coMaqHBIJvxBPmG L0/Cbe13hwpuUzvq2hxx3abz/rZnqwzA+Xtij5efPVqRlIoOQyhjV2p2aMCDkjalm8Lb D5/JbVjj9HoyO1lTAmD0BZqS8koAsv+SozX76fCfAuGLtuXN20Ng+6Jscp0BySUDDofE aaEQ== 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=CXSHmntCL4+UV8QQjmx9L+oL4Fa6FfPy1epO/kfG9dAGaVHsj0fynbCQH7lsNfXUVE +mYgDikpBge3rbq0jcVB8HMr6miXDWN4p/wO2Nzo/cfi2W/4KhqEIe7ky3Adw75CeN1j q2F/qh4dQAXPWh72ew3R+4/sKFdf9RAKvkQyi5yaGpfS6jlCJQQypLZS0GAK5GvKeVos 9FZgDfKR6IVgC6RjzHa8XkO6pe6kDqlyWdCqHsFD3F5C8muk500y7UX1tqJNUOUlyM/t DGi0W2nnHj41Kl9c6p2IUMQtyY4WfXM4T2T06SsYCIM4WDISlI6inWjuZs1auWDqsOXj Ccag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fau.de header.s=fau-2013 header.b=oB2bWtuc; 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 f8si27111177ejr.517.2021.01.02.23.53.06; Sat, 02 Jan 2021 23:53:29 -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=oB2bWtuc; 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 S1726586AbhACHvg (ORCPT + 99 others); Sun, 3 Jan 2021 02:51:36 -0500 Received: from mx-rz-2.rrze.uni-erlangen.de ([131.188.11.21]:38785 "EHLO mx-rz-2.rrze.uni-erlangen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbhACHvf (ORCPT ); Sun, 3 Jan 2021 02:51:35 -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-2.rrze.uni-erlangen.de (Postfix) with ESMTPS id 4D7rXs7582zPk3y; Sun, 3 Jan 2021 08:50:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fau.de; s=fau-2013; t=1609660254; bh=iNOT2JYpTFWhTDjGGfUfeYF9aHjIDqfHF2VFlSHPizc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:To:CC: Subject; b=oB2bWtucLc1aFEvTPTJUXYcB0VQ69Qtd1gIahagj29rRJ5nmFBtIUuRllY4iO+MNM Lck69fWBjw7tEOxGPIV0onfyJ3wLA+CTCzQ26vMFuKMuriGUO2Ts0/Z1tMDtYntO1C cJKTQSTxQstUXECsoIpywYXW/Zu9xytYwpfOkll85A9kXp8+YMEQ6KGwiKgJY1svcg WVeZTRo8y+A3iRTccNHuMoDb+pbeXFv0vUdoacaNV9/5GTW7o9BaF5+zlwqrMjWwsr 8nuHci3nOM6SVEEt3hA7DuZ9Uv1gyddjuMHF1h5ELQFXBhjerbeESNXaCxFdCHwlO0 hcTsxmcoTEVVQ== 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 localhost.localdomain (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: U2FsdGVkX18vGxUtu2mJ0UMy7IxlVqK3jCOeLnV2GBU=) by smtp-auth.uni-erlangen.de (Postfix) with ESMTPSA id 4D7rXq5VBFzPjhV; Sun, 3 Jan 2021 08:50:51 +0100 (CET) From: Nicolai Fischer To: linux-kernel@vger.kernel.org Cc: joe@perches.com, apw@canonical.com, akpm@linux-foundation.org, nicolai.fischer@fau.de, johannes.czekay@fau.de, linux-kernel@i4.cs.fau.de Subject: [PATCH v3 2/5] checkpatch: kconfig: add missing types to regex Date: Sun, 3 Jan 2021 08:50:12 +0100 Message-Id: <20210103075015.23946-3-nicolai.fischer@fau.de> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210103075015.23946-1-nicolai.fischer@fau.de> References: <20201226140511.662368-1-nicolai.fischer@fau.de> <20210103075015.23946-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