Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp140589lqj; Sat, 1 Jun 2024 11:20:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCo6N9ob9eNFU5oXtWSSJLihcGpOUKa4ukBu5xsV4Bz18aBfSjFceJrK6rwxEDvSzHQ85D7rIzhAmaKNn7uW+f6I5bFrvPcCFCJ3oOzg== X-Google-Smtp-Source: AGHT+IEFSlsHTJ9eZX5VCTnGFri2xRGg/bTH4JNyEehARa+I1lZNbTpGbXZYx0WIf7Zw5H8F1fMk X-Received: by 2002:a2e:9c99:0:b0:2e9:8833:adf2 with SMTP id 38308e7fff4ca-2ea950c894bmr34055271fa.8.1717266056185; Sat, 01 Jun 2024 11:20:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717266056; cv=pass; d=google.com; s=arc-20160816; b=rFoCm2m8W1pWZxFg0MQXNiQi01xZHtq2qdvwRIUARYTQOyS9+2g9WGr/4wiUgO4c9m HNJgjDyujAGDUY0RNemjOeR7x+HGaDOZxk5Igko8jSUgPVyKBxF+pezRJJYE6F2RypuM pxztbjs2ZSnuOZMmrG50Wj/4xFTqkWNABZ/fuLrgc5oxYIb2w1kQ0XCo2+WdmkRRMAFu XNKD5LxOZNzxZp0ZGOf0rUdCn5Gxw3X1LrzcfHoW+YmTFn+7NQf1WduLZJtqLKhJdVpN Ca1JLnL8ifCb4FEvj2wVjf20g+9aHUQtqg4dD5FnaIht54cUHRS3hiRe41PkrMQM4BGd 8/3g== 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=mPVhQCBlVmBqaRkMe1L7cvrV0zBnXNPGr1hY+U60g88=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=EAyP97cAqSol11drL8Yrg1oYMwOPM+DwLzPcmBkZl+1jrl+wAyFlJ2qgtlpHskydJg 8ya4B67tpECXVmFjyW9bHKRMDbrlZl75EflAgYM9/73G559Tv5ws4jV3D8XpEwjTYBip Msiac1VKr0aCz0WKc4HcOzKBNpke67HVq2Rrgt4Uq0Usg5GsJH5Pi2dQPAbFbxmkXyPi tpgWCMUQxqgIsLaDGzRRfRrJi5MnvbZNRGHUXE7gdc0/oTE1IcJPdQ9aftMZfmUaeSUZ Mc03dZpD1ZEyJGblxCbMH7wg7m15bmUryZNpsr5OX4UrcKrhQ1qYRIugdC3+zqYlRIq5 DEoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CxyaOpfl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197975-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31cad8f7si2275412a12.587.2024.06.01.11.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 11:20:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CxyaOpfl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197975-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DEC681F21B3E for ; Sat, 1 Jun 2024 18:20:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE939154453; Sat, 1 Jun 2024 18:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CxyaOpfl" 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 DCA0C1171D; Sat, 1 Jun 2024 18:20:49 +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=1717266050; cv=none; b=KdgedI6G4cubygOkEV0L8EjUwU4HNYUXw1V/2lY3o3A9y0lcb1ZPNTp30moejB4Jl+zusBjwhUmDp6FUqfEA3Pk+9BOPxOYab2eClq1z7WEzcjDjqltnPffkMOkQuz5uzTwPyqHdueFkBsrZvsT0MIqgaKJfw3eR86XTnStK5yA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717266050; c=relaxed/simple; bh=BuND9162WRwUGkN0x/0r2+6kLEtp01n8cDxLZ4FYcdU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=pnMuFJWQ1oymwrwq23gVdziTmAm0dHfVXNln8EU749VRgXoMZddtRwnx9DdLRmXbgKQTapyoS5VX1S/WzXfCwAE8tayq9L75DrtOmJx0X7S/9KTs9XN+pgO3PAh7SLtrN30aLmWW6+0dia18mevjwrzBOvCQ24pf+m+c5C7jJ+Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CxyaOpfl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D491C116B1; Sat, 1 Jun 2024 18:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717266049; bh=BuND9162WRwUGkN0x/0r2+6kLEtp01n8cDxLZ4FYcdU=; h=From:To:Cc:Subject:Date:From; b=CxyaOpfldcpC2z5qicSfy4up96V4iORtuHmZqeCW+Dcbou/W6zQG/wSwpBi6WHoJW Ree8Am9nxvp8m9/E7VVtWnt4sdv8b1Sg0J2ENeMoFjdUY/xG8I3sewZ/sIgvL0K/Am HUfPx4lhuYj+XGd5dhsDOW49oTe5my9EOHNjRM4u96zjF+PO1mmpQoHhW54JCB1crt FxC1of9X20TGhUtGSD32K9g9PFKNpoKvKXyITlhivN5c9e/CQ71Xwo9okLQ/mBP84m EVd+KVDJY+ZnDdm5HKVySia0xkO0BoifYq1sxnhydhmY+1RZAqFvPTlhbGIu6/LTgW o+pLlum+QQUug== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 1/6] kconfig: remove unneeded code for user-supplied values being out of range Date: Sun, 2 Jun 2024 03:20:38 +0900 Message-Id: <20240601182043.876249-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is a leftover from commit ce1fc9345a59 ("kconfig: do not clear SYMBOL_DEF_USER when the value is out of range"). This code is now redundant because if a user-supplied value is out of range, the value adjusted by sym_validate_range() differs, and conf_unsaved has already been incremented a few lines above. Signed-off-by: Masahiro Yamada --- scripts/kconfig/confdata.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 387503daf0f7..85b53069ba7a 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -533,19 +533,6 @@ int conf_read(const char *name) */ if (sym->visible == no && !conf_unsaved) sym->flags &= ~SYMBOL_DEF_USER; - switch (sym->type) { - case S_STRING: - case S_INT: - case S_HEX: - /* Reset a string value if it's out of range */ - if (sym_string_within_range(sym, sym->def[S_DEF_USER].val)) - break; - sym->flags &= ~SYMBOL_VALID; - conf_unsaved++; - break; - default: - break; - } } } -- 2.40.1