Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp552268lqh; Sat, 4 May 2024 11:34:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtguTIMmooLhl35rMewQnXSZiTNcuuHeRwZ5QvPWA0jn5cHw0fg0XRKWMr/rpeHva9H6//7wPKVzqtxuAJO+TOffuThqqh0wzBeMw5TA== X-Google-Smtp-Source: AGHT+IECR5Wn3C8ezze2K+NfvJBwTBkWIr744Mr7yt6q7JZa6qiPQP89tKeVD7SsKCB1a5rF5t0c X-Received: by 2002:a17:902:ce88:b0:1eb:5293:dc37 with SMTP id f8-20020a170902ce8800b001eb5293dc37mr7220306plg.10.1714847687670; Sat, 04 May 2024 11:34:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714847687; cv=pass; d=google.com; s=arc-20160816; b=ZxHnvxT5TVGz629m4SlkFD+2ENKYP2Rc5REKC7BgIq7o2quwqtNU/2cKxjsmZHluFU ioi3xUrPqHwRCKJjETQxZFxgosTdDvTssYQtr72pmt91DAbaMOXGdR9ZxpwM/CsD6opV IUj2/utaOHTAIvA/LAZHpQMNY5aGNTt9zNex/3IqjkqVLDqj23Ez77dRXOmkxqrOOM15 tOpKUiXQeV2DinpSWA+qpa9XwLTtPWrl/7FQIFx5zx6ec1Kme2k25iQDpgfoaYAKLlbr /7VwX/K1UL7ZT0Qhgka5ixXq2HZ5bS7LRKgFMM9OR1TuMwmzRPCv8dH/eI09HlbaArtA lWbQ== 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=oMmrI1XcwhKh8hH8XqIDWf9t59Knid0PHcU6kW8aw0Q=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=WU5/if/+1qsw6u01pKXVsjetkUDKykpB3A23VvkJCYirvYB+EuPIAaFOEcSxd0HtHp /egmReesWlXMielRZh/EQ9gEsmZwanBBXbELM3TO4GEJVsRKTVk75Bjw1R5GhouiE9fc 2MZKb0/RHDFK2xz3bmJnTIH1VLFclMjMxDxkRs5CD0HfiDFtH7FmqB6we3Z0iwgclEjH MszSWsAuGdQzLkooSZ749P2/67EQj/CKMYpkRcPzvULXDwOesifyJ0WykLu5wzUSjmCL 7/IoaNrX/xMLgFUoyGtz7Owpfw/TKTUFjUdvmZqUOT76BI1xYzYlK9QbLMBvH0CudJcE eYRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Am59WeL8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168790-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168790-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 b2-20020a170903228200b001ec37be9ba0si5326846plh.623.2024.05.04.11.34.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 11:34:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168790-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=Am59WeL8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168790-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168790-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 4A5B6281D33 for ; Sat, 4 May 2024 18:34:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D372B84E07; Sat, 4 May 2024 18:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Am59WeL8" 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 01E1384DEC; Sat, 4 May 2024 18:34:12 +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=1714847653; cv=none; b=WzgpLagiwKdNGbqrc8c/bZRhLPa6KIDw27Qfne31MTAsdx/2aXKa4LboAI1rQHGlPEF4d5DOtyq+7qJ3UYSj5AVdoAqw2xX1zFsybNj8DxeuxoQswEOX1gjCXefqv8HL14qeYcRJgwAq/AspNBnNb6uIG5oZ0sUrf5SYwCCg4SQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714847653; c=relaxed/simple; bh=Nq8nXPC8Rz0nAfIq0jS+qR4DEI3gHUkggdiRm+SnbmE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SUk/kVI4FF+i6tE46OFe4mniph11/Yij8VnuNAm62RBWGgY2B8gtISuCUe2XwoXHGxh3fhVgfqnkBnwSOdE277epRU3w/iNf7CQ3K4dRRaTePp9ucfSPgbsEKSJfwgS1SZ6MLQs4lcntNvuWED/hMsdT8Ew/UQqNooS4ZMddjo4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Am59WeL8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBC98C4AF1B; Sat, 4 May 2024 18:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714847652; bh=Nq8nXPC8Rz0nAfIq0jS+qR4DEI3gHUkggdiRm+SnbmE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Am59WeL8b0uHj1MyH9pYdvZ8bAKUMqtcxwpzimWapUZd5k7MhUrW+kcjc7DGfT00N mw7v1WAhF47/fvpzWb/nb4zfQvIyNlA3QqTS0S6Rqew5y2R564sIbI8QPrqZnFmjgd UedkwJDKdirR6zOBIOtDQwrYGc3R1ayu7hi3N23LN1IJQO8KnYWJixz9Vw77uk234k txRoJA7O7nBpSdJLOPpxDUXYYkmwIp5l5X2n2KrFnOu1iQ3L86SldsArpaXO/t8Dca SbXrCVisuOy1rE6ADYmz2ECuEXKAY9VKu9tW31XB1KI4Td4vGThvl4xT2OJmqwLhq9 3kb4uk+83cUFg== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 04/10] kconfig: used linked list in sym_set_changed() Date: Sun, 5 May 2024 03:33:27 +0900 Message-Id: <20240504183333.2031860-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240504183333.2031860-1-masahiroy@kernel.org> References: <20240504183333.2031860-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Following the approach employed in commit bedf92362317 ("kconfig: use linked list in get_symbol_str() to iterate over menus"), simplify the iteration on the menus of the specified symbol. Signed-off-by: Masahiro Yamada --- scripts/kconfig/symbol.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index b909c64f3bac..8512c29c84bb 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c @@ -152,13 +152,11 @@ static void sym_validate_range(struct symbol *sym) static void sym_set_changed(struct symbol *sym) { - struct property *prop; + struct menu *menu; sym->flags |= SYMBOL_CHANGED; - for (prop = sym->prop; prop; prop = prop->next) { - if (prop->menu) - prop->menu->flags |= MENU_CHANGED; - } + list_for_each_entry(menu, &sym->menus, link) + menu->flags |= MENU_CHANGED; } static void sym_set_all_changed(void) -- 2.40.1