Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp518128lqp; Tue, 11 Jun 2024 10:56:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWV7RaAtFYtqoX0+zDalMObBi0IaD6MqM7GTX0f4ilo8fJLXPAf47FmlEsUrYsKpyoJ0Rs4wuB3Sru1mIVaEOqdS9vFzZD68jSfavwzHw== X-Google-Smtp-Source: AGHT+IFhnTGYqm51oAlxtTFaY3fbZ8swQR3qcYSap5ZiIjI/fz3astd71KxZV8UIQKJdFHq26dlq X-Received: by 2002:a17:90a:e508:b0:2c2:e0f1:ba7 with SMTP id 98e67ed59e1d1-2c2e0f10ecfmr8573795a91.48.1718128568376; Tue, 11 Jun 2024 10:56:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718128568; cv=pass; d=google.com; s=arc-20160816; b=LRKm65jEFi0bIpESucuVp3hrKSGu75keBCmfhbLbY9W7G6hIGRtuhl4Z2pxPS2G5Wq iSFSp62g3D9MwhXOo9txZqadwwaFUP7RgV1F5+Nt91I+d4QyS8wofGhUaGsfZ6shsPLY QIO/vsfnbtoWw4WOIdg34nl1p0pKTgcHjfmgB0jgpXsjxgrczg9rlXd3ovZVG5VYPxtM ZHFxeTcVFqAuQGiCIXAJcZyxhdcpR3btcAR0Szwl1O4YQf0zBGlaLT5mKQZRM8lMcJG3 4trJ5ipthhUbz9DFVaBzRXD3aWNq9aacBsaM/wDzYcVixRbXQ/1mt7UknkqpOZOJD2o7 QCzw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=W77eBd3icp+IxDAPIC3KYD2GNB1DK/FMDMmHR2NM/Rc=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=I5htWq0Wcp61R/TxcS/0esNlS6wj389wnU+TgHNYiQVa2uvd5S68+qvAkEKsT9g9mp O49DKzoikE6SxjLz0XMZDkVnX14tEcECjnRbA3q5kEKHBcUpqlJJ9Gb2GD8IoA2Domvm TfT0gBpW8myu4EAV1vf9kHnZsOxGtKy8lUdG06XMr2wE9MgzIvXBZbV9QK/V9/SF3u3U zAI63+wwJkZji0s/Qof8YogASmwM02wbmEPqP7haoHRugs39SJ2Bk/xa8jzUhNmcNt29 rS3J2/CFsZnT8lmE4miuGFiQ3UtS4LakNbCmkm/Yej01OtEDBXdQg64GKubf4NEOiOfU JkHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QW18L2NV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210362-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210362-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c33cd06c40si968428a91.102.2024.06.11.10.56.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 10:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210362-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QW18L2NV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210362-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210362-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E5BA028C1E8 for ; Tue, 11 Jun 2024 17:56:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B04945A0E0; Tue, 11 Jun 2024 17:56:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QW18L2NV" 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 D5A473D388; Tue, 11 Jun 2024 17:56: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=1718128560; cv=none; b=MM7HnLZXqhX9eD+mz8Bb6fGRH4AcAVG9Z9whrm9LJwtYZkh7H/d5BlRhzmn2LFZp77x8jDKsjcBCO60wZ2uH4FlFjlJeebabSslNrWTCF0w2xv9MboWcG2i2r0DsR1qOf8YVFvELgRg2vZP5P7yHXl4Yvr3R29MQUF70IQzQXb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718128560; c=relaxed/simple; bh=pvVj711f7FBwfnAlWPNSTyvI0x2SydV/QyMxLOpP2oI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PhLIXKkFUwXHQjMTgx4Fx6UUpUp1hmETex/aoSxLch/TKycL/pmJbAE1IOvSN+DyYkxn8zdq4WPsTFllc1UEyFQDZBmJ2qv0UYUWPQlmZpm18wCIFahf/KOFJDWIW228uqbMmM2XvcVtOUzC9gyAywTLU9NdrRRz8oRRBZxugwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QW18L2NV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7C28C32786; Tue, 11 Jun 2024 17:55:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718128560; bh=pvVj711f7FBwfnAlWPNSTyvI0x2SydV/QyMxLOpP2oI=; h=From:To:Cc:Subject:Date:From; b=QW18L2NVU1eajdx3zWvrlhRbTcy4TWNj2Yyfe+QgJEsXkBKYk9ZUojVeaYzAbFnF0 bikYpJ5AkKqMjBY9BsY2edtrpblnQP4ewN1qR5CkNQr8z7fBvgr/xVsIP0337EZsHk +v33eTTb3246+fSxuNmd4w1mgI4vllU1RV6/gIy5uTuItjoDeny4c+ATFQ+ZvLWHKt OsDZ8P9lgICmsgYGkYKMW2AIZWp3dSPz9wvuPbquhzilrzomiWhE+OJde2N9s+zrQ5 sZJcVOZ4BM4O8mKfMkFD7NR1XMjLwgWqphhVrXhqNCYEUWnv/Vg3sA5fA7v660EaWk fqeM+qoXuaaFg== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 00/16] kconfig: fix choice value calculation with misc cleanups. Date: Wed, 12 Jun 2024 02:55:09 +0900 Message-ID: <20240611175536.3518179-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The main patch for this series is: "kconfig: refactor choice value calculation" This rewrites the handling of user values for choices. The others are misc cleanups. Masahiro Yamada (16): kconfig: remove unneeded code in expr_compare_type() kconfig: add fallthrough comments to expr_compare_type() kconfig: introduce choice_set_value() helper kconfig: remember the current choice while parsing the choice block kconfig: import list_move() and list_move_tail() kconfig: refactor choice value calculation kconfig: remove sym_get_choice_value() kconfig: remove conf_unsaved in conf_read_simple() kconfig: change sym_choice_default() to take the choice menu kconfig: use menu_list_for_each_sym() in sym_choice_default() kconfig: remove expr_list_for_each_sym() macro kconfig: use sym_get_choice_menu() in sym_check_print_recursive() kconfig: use sym_get_choice_menu() in sym_check_choice_deps() kconfig: use sym_get_choice_menu() in sym_check_deps() kconfig: remove P_CHOICE property kconfig: remove E_LIST expression type scripts/kconfig/conf.c | 139 ++++++++++---------- scripts/kconfig/confdata.c | 61 ++------- scripts/kconfig/expr.c | 23 +--- scripts/kconfig/expr.h | 21 ++- scripts/kconfig/gconf.c | 2 +- scripts/kconfig/list.h | 23 ++++ scripts/kconfig/lkc.h | 10 +- scripts/kconfig/lkc_proto.h | 2 +- scripts/kconfig/mconf.c | 8 +- scripts/kconfig/menu.c | 25 +--- scripts/kconfig/nconf.c | 8 +- scripts/kconfig/parser.y | 18 ++- scripts/kconfig/qconf.cc | 8 -- scripts/kconfig/symbol.c | 252 +++++++++++++++++++++--------------- 14 files changed, 285 insertions(+), 315 deletions(-) -- 2.43.0