Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp721546pxb; Thu, 15 Apr 2021 05:10:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtpevSy6iNdvpYQ+9PMl7NTMHpZJqLq0tyKXFi1rNU3Jg69jxJ6c85YikjbuW9H8Sss8Gv X-Received: by 2002:aa7:8ad4:0:b029:252:dbb4:5e54 with SMTP id b20-20020aa78ad40000b0290252dbb45e54mr3120762pfd.21.1618488621167; Thu, 15 Apr 2021 05:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618488621; cv=none; d=google.com; s=arc-20160816; b=gGCrZxfTlwtZhJFVHv7A97GPQOG+8gZ7kGhJ4RVU2S8nQoFFoBP1cfC9Nh5GLlueAa Q5JflO5be3fHrjYJMZjLpXzodR1Kt04EJS7ffPia0LYOWoKCRwK4oG2uKPk37kQGh3lf b0xOtM7vc6wzQp0bDZQR1zg0atQ3zxp7JFq/8JLe8KJAlSnvLD9TQ3abV4SMR3LgnUrQ u5bOk41++oGB30M6kPN5dPb0cQss0vudWylStl1YrPs7I6QjsNduGUkzA2r5tbnBMhDt 5vPFNBKDCNiVs+l6PgE86eGLShOnyt9PTiSs6fPiPmg11TU9ldNG8Lp7zJiWBpa/ncrA F77A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=fBU0e3wh3Mom706ETwnR4bgCESN5le9tpp4a2Slh/Go=; b=Jo8NdFyG8yYpHpAxIHmgxBGNUeztj+F5xmLol8tr8wSrsA59z+br8/abjlRB0q7nGF LJjz3noD1Zb5/icJ6hKFJHdQ107n7efwsW+8iMsF82yO2RaNaFAoIsmUvR/n8QfH0Kzt Osy91jnRKo4FdQwrlrz6MSq0ApIw/D/B5WIEBaCM7wFGgR62esud/HUWX1k/dlOmBnhd diYGwb8Yd6K/WyxLXHPZLjTtnCo8/yBYVcvYw1D2xbdba0SJN16MC3yM+o2rQinxMJpB UW1fHtPIzEn7uJARAsbn+fKexr0xaECMgm/QG6ANK0ycrkG4UOyNUKDExNbaohpdK4mh REDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=BH2vx4+v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 34si3485111pgw.301.2021.04.15.05.10.08; Thu, 15 Apr 2021 05:10:21 -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=@nifty.com header.s=dec2015msa header.b=BH2vx4+v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232648AbhDOMJW (ORCPT + 99 others); Thu, 15 Apr 2021 08:09:22 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:20166 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232565AbhDOMJV (ORCPT ); Thu, 15 Apr 2021 08:09:21 -0400 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 13FC8a7C012312; Thu, 15 Apr 2021 21:08:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 13FC8a7C012312 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1618488517; bh=fBU0e3wh3Mom706ETwnR4bgCESN5le9tpp4a2Slh/Go=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BH2vx4+vGXPaFHjwRWUz9JbdhIM5LvJ/7QUYSmAYtjdbgIaL7MT6eNci2NpGTnkuL PeQPAmim/vg2+83XGxVbNIeFpMNeiXarBVcB1Ga6OE8YzjtEbrW7nSrbLieUFCHzjb E66gBv21r9BZqBvHkG/Eb/lkVdn7pfkxyYA0VXNkIuJwP8DE6G0vZV3b9azkuJLHrO 83h8U1sOsS55A5m2tcZAooLcBwDEGnpTUcfCNGMemCYMlac5YK+zJ9ArkABTjKM3j1 Z9flPDtcNBgBRFVDdHmDPsI9liE9F/WPkEARVpYZzu+1rRlw4xfo0m36en4fMT6OjD D1/8+wM8dDLdQ== X-Nifty-SrcIP: [209.85.210.178] Received: by mail-pf1-f178.google.com with SMTP id g16so2631889pfq.5; Thu, 15 Apr 2021 05:08:36 -0700 (PDT) X-Gm-Message-State: AOAM531gF266pyJ2Pe1jkTkvgQVaYTuUao9GPiBuFCwLdB2dkDTG9vvY +U1PB76bk9FtBMHtBg+TH9rdz6fm34XdvvGBsw8= X-Received: by 2002:a65:45cf:: with SMTP id m15mr3137730pgr.7.1618488515802; Thu, 15 Apr 2021 05:08:35 -0700 (PDT) MIME-Version: 1.0 References: <20210413150817.110282-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Thu, 15 Apr 2021 21:07:58 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: split menu.c out of parser.y To: Boris Kolpackov Cc: Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 15, 2021 at 7:54 PM Boris Kolpackov wrote: > > 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. Yes, I will use this header for further cleanups of headers. > > > --- 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? These variables are defined here before I started to maintain Kconfig. For now, I am just removing the 'static' directive. -- Best Regards Masahiro Yamada