Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp669089pxb; Thu, 15 Apr 2021 03:55:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyGzNw5q2IeFmG+fgJJcxs6lcwLgOgW+iugoo0x08c1Nr5bgIzZtGzcwB5F3OwXF29lkqr X-Received: by 2002:a17:906:a20c:: with SMTP id r12mr2730708ejy.554.1618484145773; Thu, 15 Apr 2021 03:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618484145; cv=none; d=google.com; s=arc-20160816; b=Htgb0tyYP3aasiYW/B7eMRrVPfao9CqqjsPW5+ah9BJCFb9SPgUYt5ZZE+bUXN0Qbt wweEZC3/Rr4D57pb4go0ku6iN4LWQpFeO/XdYdWoYOEpoRX7AgyZFaAjKFYksjh8npeK +Qbd8Xa27+wdFp6dgqXSOGOaRcjIyyMqXQfpQkPqt9aKm3MYaN5eJ2ZwCY2e6FFKtA9U BUOoVXnzuguuZe110yFltxjnVBCpHyStad4Id1zrCyI3zC+vXg9V9lhI0cVjeo4z+X2w CHPL2rbW1s4waeCteByDPx1Ug3JwIMo8tah5/I/t9et08Ii180v6549X45w9PuHE0Wmj b00w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xQoNH9cpiU7QuSUVmLqExwt59yotTiYbKOoo7v9GCdg=; b=jLHhOvIZwXwueLZzgKnD8MRcUxwT+so4nT6MstK5H4kg2UV0lngl1CmtBM010OUYvm YzELHYDWq0ztdsQ4PYZb1u+wmmDtFJSfIqaay/Ku+mwCECD3LoysbroZYVY62VhteNy/ G56qz521i8vaV/7M73JJdQxHYudiAGKRw3USApVkudroQro5qUIE0Jwpnt1EkSi3wNtI aXsDSjebPMlAufUg3lKC/ru9ZBsaOQFgpne3sAND5uq1o1s6p0u8/RD1dn3kk8mWdqf6 pCT18KDfRL9Ona6y9JuZIs3hSyljNfm6UQbktFRiDtwiIg7Tql7ksVffafeA5FQKEHNw rWtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codesynthesis.com header.s=mail1 header.b=W7KeNT0P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ho8si1788996ejc.605.2021.04.15.03.55.22; Thu, 15 Apr 2021 03:55:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@codesynthesis.com header.s=mail1 header.b=W7KeNT0P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232343AbhDOKy4 (ORCPT + 99 others); Thu, 15 Apr 2021 06:54:56 -0400 Received: from codesynthesis.com ([188.40.148.39]:50340 "EHLO codesynthesis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbhDOKyx (ORCPT ); Thu, 15 Apr 2021 06:54:53 -0400 Received: from brak.codesynthesis.com (unknown [105.186.239.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by codesynthesis.com (Postfix) with ESMTPSA id 19C455F744; Thu, 15 Apr 2021 10:54:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codesynthesis.com; s=mail1; t=1618484069; bh=reD9xaYuqg0SjFGIUsFww6nZY6w7d0yiET65h5mPuM4=; h=Date:From:To:Subject:Message-ID:MIME-Version:From; b=W7KeNT0P/rEfidTCe2ssTOv6VtxSjxolY0537TthIi3jZUJuI4Bhw1xo1UFnSP/Le pFRiZfn3if+/m1FbW90HrRXWJHalJPoxJ0EXx2nYrXj/z3WLuaU7lh/H+MwwZBvOlS wT7rr+L9XGfRibRs8rcuGfHZkqWvQq/jwRPli7wXTfyq3jXRiYLWsj+FPyIz5nI8XI P2KyIotv7khDWFO2/YLK5nq2WqUmN3RYufP78vkFDW43haUodTZ5Kp2+9wrMunCGE+ UcIKeEamIuRwo12EXY1aa3CDJI13/zhNS3UpIWASNEJ3/hSfafSrVHbZ4rwjwsXEet 2dgpgXTcUAdLQ== Received: by brak.codesynthesis.com (Postfix, from userid 1000) id C39E91A802C0; Thu, 15 Apr 2021 12:54:22 +0200 (SAST) Date: Thu, 15 Apr 2021 12:54:22 +0200 From: Boris Kolpackov To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kconfig: split menu.c out of parser.y Message-ID: References: <20210413150817.110282-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210413150817.110282-1-masahiroy@kernel.org> Organization: Code Synthesis User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Masahiro Yamada writes: > --- /dev/null > +++ b/scripts/kconfig/internal.h > @@ -0,0 +1,9 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +#ifndef INTERNAL_H > +#define INTERNAL_H > + > +struct menu; > + > +extern struct menu *current_menu, *current_entry; > + > +#endif /* INTERNAL_H */ Maybe call it menu.h instead of internal.h? Unless you have plans to put other "internal" stuff in there. > --- a/scripts/kconfig/parser.y > +++ b/scripts/kconfig/parser.y > @@ -28,7 +29,7 @@ static bool zconf_endtoken(const char *tokenname, > > struct symbol *symbol_hash[SYMBOL_HASHSIZE]; > > -static struct menu *current_menu, *current_entry; > +struct menu *current_menu, *current_entry; Why not put these in menu.c?