Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3161930pxf; Mon, 15 Mar 2021 03:09:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQC9XVvmoHFIvdd/4xNYiuEXBQCHwKsogySiwRgGGlip382/2U6qk4P7o49Ikq/KN54lFF X-Received: by 2002:a05:6402:b2d:: with SMTP id bo13mr28753796edb.120.1615802948023; Mon, 15 Mar 2021 03:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615802948; cv=none; d=google.com; s=arc-20160816; b=uXFeDwAcNj/k05nsthRnxC8epWe52P9vP9+mqVUUNR7gmvx4iBVL8gmZF0BbpaEVp8 ULkp8wE8FEQZsznMdRXEpe+mGJDVOnMS5Q08wZz4WzA8XmdhNyqvaaWy2tpzC8C3PgD3 F2CLrqGqgC2kMxjOfDpyujpCyneoZZ6l9TMqJDJcKJ+8cfvpklttiixsH7JYpi/PZo58 fogQ8ZjXqj7sctF7tpW1sRCTSFMzYSyQIpypvjVBVJ50Mefai5Dy/K/UjEMNq2YnkQl4 g5VVGsBXNJ4HiwkdyocVZtf7CxqmrDlwCWC/brJZMLl4VmdZqmof+rrNOfqDCvZjMlxb P6EA== 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=Yfsb/U9hGZha6X+1XaouTSEEMAFerQBHxKFjSybqvFY=; b=zW67ziZIfw7C6IA9ezDIvp3Os0Qg4gdU7/Z/gTlJyNQSkGIsqzkiFu3EV0/fYii/fK +/YvLP/+to6+lS+FbgZP9KnC7Q2m8F2ZkfbQt8b45Hozd8HsE+uDbhNd/Fz3S8L2najg H/7KSInyw+A1eCFTWdQ2FUJ5NYacEMLsO7y+6vxjzcnHrxP2Qum5BMqqBZHCLEb6rdat VzTVnUV4eI05cP0Nz6EOBwM9mxnLvRBwu8rn1AZzy+ASZbWmeBSyg+d6g8hjgU4qTl9V D+HgUgyjOUG1s75O2tVmUUoZ/CyfGdmdiBvTz0vGMyapqfqe0QjFXoxFmQ89rlL/ahRB PaAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codesynthesis.com header.s=mail1 header.b=YvtG8X8b; 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 di21si10159010edb.524.2021.03.15.03.08.45; Mon, 15 Mar 2021 03:09:08 -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=YvtG8X8b; 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 S229720AbhCOKHf (ORCPT + 99 others); Mon, 15 Mar 2021 06:07:35 -0400 Received: from codesynthesis.com ([188.40.148.39]:43696 "EHLO codesynthesis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbhCOKHW (ORCPT ); Mon, 15 Mar 2021 06:07:22 -0400 Received: from brak.codesynthesis.com (unknown [105.186.254.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by codesynthesis.com (Postfix) with ESMTPSA id EF45B5F1DD; Mon, 15 Mar 2021 10:07:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codesynthesis.com; s=mail1; t=1615802839; bh=leiXsLjdN8Y+FqZLPyr3PVl00+fnXBtZhhkHD/yZ6lc=; h=Date:From:To:Subject:Message-ID:MIME-Version:From; b=YvtG8X8bvNeV54hLlGBg+t+yqlG68L09LtuhGR4zgXKcXyC5LZRif1nywDoa++WT4 PSL5c5LXS2AWobaucV40ZwFFliwbW3jBFqZsQRd1ADMm0fpFlg5GYXHZ/sSDpJgsTs EzCS3SvRygfAvCDRTroJ7zx7bTwQWikW/wPbr5fac9qSsReFeSwNiGhClC7FrbZeKw 05xpH8xyYykWEyR+a5OVou+qHaB0jSknO59hBWOpNr3bp657eqMtK0D9EQXJ4Q7rBD Od11e+v9fyFHuis8OwcD5YhETky4G84QV6xxjA5ZzcfGVHcI1fkOlLMt4IObrKLCWz 55Sed/kuIGfYg== Received: by brak.codesynthesis.com (Postfix, from userid 1000) id 004C21A802C0; Mon, 15 Mar 2021 12:07:09 +0200 (SAST) Date: Mon, 15 Mar 2021 12:07:09 +0200 From: Boris Kolpackov To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/13] kconfig: move conf_set_all_new_symbols() to conf.c Message-ID: References: <20210313194836.372585-1-masahiroy@kernel.org> <20210313194836.372585-7-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210313194836.372585-7-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: > This function is only used in conf.c. Move it there together with the > randomize_choice_values() helper. > > [...] > > diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h > index f946ab49ef50..d0d5acecb530 100644 > --- a/scripts/kconfig/lkc.h > +++ b/scripts/kconfig/lkc.h > @@ -57,7 +57,6 @@ const char *zconf_curname(void); > const char *conf_get_configname(void); > void sym_set_change_count(int count); > void sym_add_change_count(int count); > -bool conf_set_all_new_symbols(enum conf_def_mode mode); > void set_all_choice_values(struct symbol *csym); A number of people package kconfig as a library that is then used in various projects outside of the Linux kernel. Removing this function breaks the library ABI and potentially such project. For example, I call conf_set_all_new_symbols() from my libbuild2-kconfig build system module[1]. I know you don't care much for such out-of-kernel usage, still, this (and the previous commit) feels like superficial reshuffling of code and perhaps it's worth not breaking things unless there is something substantial to gain? [1] https://github.com/build2/libbuild2-kconfig/blob/master/libbuild2-kconfig/libbuild2/kconfig/init.cxx#L938