Message ID | 20240202155825.314567-28-masahiroy@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-50087-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp527954dyc; Fri, 2 Feb 2024 08:06:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRCdzL+yUD/m+GDM5e+2RnXOC49LiEBGHu4n3MI64lcD0oZtt3ItQMuKvCTEHJEi9bvn43 X-Received: by 2002:ac8:7c44:0:b0:42a:8b20:bb2d with SMTP id o4-20020ac87c44000000b0042a8b20bb2dmr9284688qtv.22.1706889990960; Fri, 02 Feb 2024 08:06:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706889990; cv=pass; d=google.com; s=arc-20160816; b=09hSFMIEfm4NfI3VEatreyFXPn2mr2KyXUHiM0q0K4KVBzQKogHhGj7VsqFk8sk2ZY c1Vc+MVB5X2321mptX9tmyYfMlod4+ow2mE3YD+wHWIvalEbWLMQmjaWs+0GbWr0Xyof WP19+pq0jfIkFY16fVxI86NMdYttkD9jdA739c3Kmwvjg48ZIpRgxZAWqMV2Hq/UCAbz E+Fx/UMBCm224WlS6ro2CHAIqrvWh0/YKVMpg5A3F0d8USRtsIGmQRW2nPCiEmAhbj8O ZYvHAX/PWC+lYZRgSOLUWlGddk6v5GX1sc5r16gvPolcL6mmxSpbiMW/C7WWHjTRrlGY 20qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2Cbn1Gtq1JIdG5vP5amVc2bF2OzgkURvrvVUZykHRTQ=; fh=iGphcgvNlx6JFWU96V5D54LVyMLfRuHML6ErqNdAGPo=; b=EbgrRpBce8PXu2JWSmYh6K1KXGu6EWsYOmrpivsO/sp70+fx6JOzmiAAyNydImLZWu rgELBmebJb025UoKYZWdnzYBbqFs6hhRoyH1iLD9yM1efRLOG3LhUEqbiz8YVR5fC2lW JBkTUAVslcq4a8NX9bDUs5eYQStJnifG50qMH2nnhPz+iGEvP2tyABEH7W9LXcRNx40i FuA+F/V+hAG7V9wDwgb+g7BZ6tXgs+TqUTpaqWg9MEYlEReQuCaM36/g7jUh+BIdTc+C mSIPDQpt9RgGCpzMwZkwnErmLFVBh3pQsNZRme6qnIqfSXT16LTFgtSA5nKsc8oXHwR9 FG/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nn3YZR80; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50087-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50087-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXSLZjbCFy5Or/fHUj5msVzyo671uXTRsBTaeDb7dAhlpCLNCMk18PWW1nt4eMty6CHKiAj2W4JiJbx+svT/7jbwQAOUQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n16-20020a05622a11d000b0042bf0e27004si2227514qtk.558.2024.02.02.08.06.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 08:06:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50087-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nn3YZR80; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50087-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50087-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 495F21C24E76 for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 16:06:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 988DF153BED; Fri, 2 Feb 2024 15:59:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nn3YZR80" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E73D915350E; Fri, 2 Feb 2024 15:59:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706889541; cv=none; b=VsuSThnnYomgWjk6JFcsg7/9mga9UFVFcAPqe4BagROxq+VptKycGF93SAN0C6PeDfOvmEGsIevuyE5uG04dRRb4B0Oj7AYPfz7owQwuxYTQr0gW5PxwBlh5BsuwgvGM2oitRCXWf4lnUaY7WSbnLdA1N9CFhWVByW/maD/G09I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706889541; c=relaxed/simple; bh=z4Cms56kmTfXRHkY+P++VOmPThXzhuLEMnCh+5t5LTk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XpBfO3kKOzjLLhS0sOJaEb1M3U4UQafTpl/PxSdxhs7Q+GBZ9hV95VtwRwXlXq5KPg4S+ACEw9TX5DO9tKQcPfrSF7VDR3RnW3ZPYG7woFyGzGNCKEayiG8tllvGvxSsMhENVpjhlHhOcWTyObbOkSeWwscp0JfCuo0Zi2y4SPQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nn3YZR80; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBF86C43390; Fri, 2 Feb 2024 15:58:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706889540; bh=z4Cms56kmTfXRHkY+P++VOmPThXzhuLEMnCh+5t5LTk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nn3YZR80OfoXt/sLgprXuYM20Lq3vti3Bsrk0CaUs8c7oU5QF7MwxAzEWpoAp9dGH 7rM06W06R0+Uc+bAhvFj+HuwDNJUXxXM12eCARlJH9by5rQqTStGZPzBilgeI/p5MJ zUr2e3hI5gBKtgGLvo9zFFSWMuLsr7zqWMjsTaS9/tncjCAYGRzRoJIwbQZVWRpYF2 lXgiuhMH+k5Kq7rgx3lRGc4eBztnQjo6zIwlPiwFSdQNnJ1XEPeLr792PFoXTrmEo2 ZOAn5mBQ+DSbMPqRfKYqqNjxjzNKH8fE+0IEAhaVFyPXRnJOxdwu19DP2OUWxbVUNg MmBYRI1Hd6Afg== From: Masahiro Yamada <masahiroy@kernel.org> To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada <masahiroy@kernel.org> Subject: [PATCH 27/27] kconfig: do not imply the type of choice value Date: Sat, 3 Feb 2024 00:58:25 +0900 Message-Id: <20240202155825.314567-28-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240202155825.314567-1-masahiroy@kernel.org> References: <20240202155825.314567-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789803879356605316 X-GMAIL-MSGID: 1789803879356605316 |
Series |
kconfig: refactor lexer and parser code
|
|
Commit Message
Masahiro Yamada
Feb. 2, 2024, 3:58 p.m. UTC
Do not feed back the choice type to choice values.
Each choice value should explicitly specify 'bool' or 'tristate',
as all the Kconfig files already do. If the type were missing,
"config symbol defined without type" would be shown.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
scripts/kconfig/menu.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 696803d944e0..44465945d6b1 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -305,12 +305,6 @@ void menu_finalize(struct menu *parent) } } } - /* set the type of the remaining choice values */ - for (menu = parent->list; menu; menu = menu->next) { - current_entry = menu; - if (menu->sym && menu->sym->type == S_UNKNOWN) - menu_set_type(sym->type); - } /* * Use the choice itself as the parent dependency of