Message ID | 20240202155825.314567-6-masahiroy@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-50065-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp524278dyc; Fri, 2 Feb 2024 08:02:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IE570q84V0C2u0fCRUi8IB3bna4BW1VOADjYWGRS/BjirpJ/3HFMExx6LG0foYXIJOwxeHf X-Received: by 2002:a05:6a20:3b83:b0:19c:64a5:2162 with SMTP id b3-20020a056a203b8300b0019c64a52162mr5872407pzh.20.1706889740306; Fri, 02 Feb 2024 08:02:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706889740; cv=pass; d=google.com; s=arc-20160816; b=zSfest0yMJe/EC8rTLLxFZYY9zd6qUcNrBn96xYxlAWQcLu6FpubhyiuEiLciamtyh 9e+fXjAegtGow95VOrftuqrv+v3gmuWKvGg309muuWdKDHvLGF8/6uv9aH+v2VzBqlyR UqlD0CGkHp0MG462xaXCAtYJinsebXetdK1SJqrzH95yZ5x2a3HHi0u4aZaXJmZ1PPp3 59qUMOF3/js8Vg720PgWu2pJj3wWQFoGC2Vn+kQXvht8/VX+citMtVmBposTAark9+8Y u+uN3KRk9QGfXh7qVpp4GZyWOQy67Cd9SnQP178eCpOQS60v7NSz0KrnNeQds2zG9aPG 0Muw== 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=REh71BSfWZPhzWRgxT0aWAmdVgtK9CEC8kNrWd51NOc=; fh=+YUgJsigrkUDxg/nNs/Hus7QleSQREitXRRFrrx7/rI=; b=lk1DqaX77oagcU5ASgzAUp87RxyowdIu+DTQqrSuafWzZ/+xrl0PABwGPUbNlI3bI8 pRKo43rSGa7E2tO6uqIVsv8zxZx7xod7MAevrH3dAFAWTQV0DG0LU23X7UDB90ci3RWy c/p0xzbQ3pwqLwJ23BaeGRXDe/SctNUPT8cYImYYveEDBT9cRWZhp7gh1yJVuGYAdXyO MdaczFAqvIuF390JeCr+weozlmvjxH/0iSKlthfPvGGacC8IIrMq9t5/ZuQjWhD/t1vs 8ymebvSfKA3/EmvKgTEnInlE1P0JnPxyImuiVgKk5ldcFBZEaeWrBfFKo9FD5S51OUcY 8Ckw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OzARufdB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50065-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVo4wrHuxnounqVSOeKuigzRZrWD2A9a/Ygeh11QmS2/4mgwwXLQwzOOTWkTB6/cMspvnvoYi7kb/BsTZlq0fWg7x3c6w== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l5-20020a654485000000b005d79ebbdc0asi1785237pgq.334.2024.02.02.08.02.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 08:02:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OzARufdB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-50065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50065-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CECDF291882 for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 16:00:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59D0114A09C; Fri, 2 Feb 2024 15:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OzARufdB" 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 8CADE1482E3; Fri, 2 Feb 2024 15:58:36 +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=1706889516; cv=none; b=mxygVc23mrNxy1blwmc/4JYwFRPLR6YWdbcKufGd/Xp2hVZdpwRG6JMoHsRfaHRwKtChGq+OpRLls8k3E/U40FZI0r3a/ZS5xSY7fgMqyntu3DS3sGLtAMUBlSvxWDr78n2kzODhoyUUkJBfR43bXjheEH/grb9C3NuPoruMPUA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706889516; c=relaxed/simple; bh=QxttmJ6wH6mvkJitGwDubEDFOUUd2Xr4fYtG01w5re4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WONbj9olxerMc9dvNFdNkDvnv5vqbsbp1+zQ5gVOl4b88YUOUSIhdQfiHCmWsdAsVOiw1/dSbFjoCoU7vE3clarlJNKfDnO5r3nFtqdZYwVyQtI68YgzUka8lDf7DSYvfdpmmqZausQseG3FEWdnYrSVTunzey2OazMw5y5ql2Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OzARufdB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EC86C43394; Fri, 2 Feb 2024 15:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706889516; bh=QxttmJ6wH6mvkJitGwDubEDFOUUd2Xr4fYtG01w5re4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OzARufdBT5hsokUprAZCTDzxdWpGu+Zgr8rkMV6VpJTEoyd7K0Zj0EDWoTyH/8ksw NWxctv98n7HaGkAbYF3bVksUklaPM/Pj9n3MZsApGSnB300SB10Y+nGQFuv8DssnFB XIrA72wAAr/x0BZokXdPHoas20PqgAbG4SUBDbC9UdApGxyDW49W86hhotLQ9hFE25 0pPy1VpIoGOVORHKWrL2si/hI/MsHWQo69+lKaY283REIWZptn97kKBRYJQasiSbRi Dis1SEEwDJ4eabvi9qyTEh4N1/DeIyxc1hqes+Ddm63hGEgJGuUzI8cKX1xejrVm7a Y27KPWi15K/Qw== 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 05/27] kconfig: remove unneeded sym_find() call in conf_parse() Date: Sat, 3 Feb 2024 00:58:03 +0900 Message-Id: <20240202155825.314567-6-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: 1789803616673038488 X-GMAIL-MSGID: 1789803616673038488 |
Series |
kconfig: refactor lexer and parser code
|
|
Commit Message
Masahiro Yamada
Feb. 2, 2024, 3:58 p.m. UTC
sym_find("n") is equivalent to &symbol_no.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
scripts/kconfig/parser.y | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/kconfig/parser.y b/scripts/kconfig/parser.y index 5ab2e3f7ca33..625224973c51 100644 --- a/scripts/kconfig/parser.y +++ b/scripts/kconfig/parser.y @@ -494,7 +494,7 @@ void conf_parse(const char *name) if (yynerrs) exit(1); if (!modules_sym) - modules_sym = sym_find( "n" ); + modules_sym = &symbol_no; if (!menu_has_prompt(&rootmenu)) { current_entry = &rootmenu;