Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp543010pxb; Wed, 25 Aug 2021 09:05:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLt9bCmnqBXQHN4srnNE/oUatvhdmCqtEX6/1MJ9lpfCH4Fc9DfidU7EAF58vkUSSUlTC2 X-Received: by 2002:a17:906:3947:: with SMTP id g7mr43713751eje.87.1629907507959; Wed, 25 Aug 2021 09:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629907507; cv=none; d=google.com; s=arc-20160816; b=qtN22nXAfjd691QPSqWbewKZR5UjtH5xDJ5zMD4AwxMw3evQ7FOlfkJunePEeDK9Lx hvn49cv/3Gw6lG6n6jpESgzNav5bcw7iRRGwq+e9z6YJAlxwq9we0Yg4LwItYIADb3kP +v0xAozHQRCXhkNgiqCEqsdyksjK+usW+UhB2UAcWzwCMo3iyI5BQh8KaPCZTJIyCGgt yM6TGlOQE8qe8KCt2watAf/xVebBe2bdfSveLuz9iSXPM7d8gn9v3TysPdTZr5461QvK X03uv6yM4SDbaj8iQKIC6luC6aKePERNnYxZqJC9N5b8qpvGT+7HwzJe+NXGSmrqiAoI dB/g== 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=eiivkzkibEMRuzdGMi/8DTEvGMty9PPuGfZXKe7aB6Y=; b=ruUEZjjezS8+bkdlVKAjo8twZ5VrnIKFE0DGrcT1EX/RKtDfMXQi7lRv5KGqfWbSWL alrnxJi/uqSbSRfybvLZoko46vlEOsSGkiYEZp95u/1F247jBvJ8hXBAhp4ybK7/PrIe wmhNS2R987Mc5m9FXqoiWfGgwBFoqI71PeMp5tZSYGGvR+5aisSMai2c2vnFS7NBIaVN HJrI6MMiqughd5FnEhKchnQE7n9xwMElIDnTfl7Kd0cJkOPHbnCgSnDC1wGKt90JOtpB pqiTfr7Xn78Q/ZMeuIityoPwawW9jQj1GGZiwJHKr0620NEs3KWiQakKQdbpLM5IUoG7 Br8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codesynthesis.com header.s=mail1 header.b=M4Zeq9iy; 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 b9si196701ejd.404.2021.08.25.09.04.40; Wed, 25 Aug 2021 09:05:07 -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=M4Zeq9iy; 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 S240995AbhHYPnD (ORCPT + 99 others); Wed, 25 Aug 2021 11:43:03 -0400 Received: from codesynthesis.com ([188.40.148.39]:44846 "EHLO codesynthesis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240878AbhHYPnC (ORCPT ); Wed, 25 Aug 2021 11:43:02 -0400 X-Greylist: delayed 453 seconds by postgrey-1.27 at vger.kernel.org; Wed, 25 Aug 2021 11:43:01 EDT Received: from brak.codesynthesis.com (197-255-152-207.static.adept.co.za [197.255.152.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by codesynthesis.com (Postfix) with ESMTPSA id EC3275F7CB; Wed, 25 Aug 2021 15:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codesynthesis.com; s=mail1; t=1629905681; bh=njRimGOIAbqbKx/5ZrZSGnm8dBTrS6TRY3ucp7C/bzU=; h=Date:From:To:Subject:Message-ID:MIME-Version:From; b=M4Zeq9iy/BsSsC3ucqhrc8i/ZaAxdzH10P5jgmpgL4PwLblF/Fp947GMfSBXeNsjq NuVIW50/nTWLqphqH0bmluRAxc0xwe2C4oPm8c3f82SB7NkwrgSfclPFXG73pD0L0h BXOpQO6Icl3wl7OePxAFtZ7q+2CMRU9b3Qt4+Lm1L2wJkxTOQ3DpJExmWuUMQyAheR kyHK+EDh37gLQ1jZZ8I0aj6iXvXQ9trqsiJeiZDTSWqktv5++p/YTyknMZMmxFNd7P pNCo5LQJUmP3rmiNyTGDZjJtNKJ5AnGpM3Qc/HQWkVB6YyRtxYHeF5BjZsSZXaAbiu PCHHvOofYHbwQ== Received: by brak.codesynthesis.com (Postfix, from userid 1000) id 1A3B11A800C4; Wed, 25 Aug 2021 17:34:37 +0200 (SAST) Date: Wed, 25 Aug 2021 17:34:37 +0200 From: Boris Kolpackov To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Jaroslav Kysela , Kalle Valo , Liam Girdwood , Luca Coelho , Mark Brown , Peter Ujfalusi , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] kconfig: forbid symbols that end with '_MODULE' Message-ID: References: <20210825041637.365171-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210825041637.365171-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: > Kconfig (syncconfig) generates include/generated/autoconf.h to make > CONFIG options available to the pre-processor. > > The macros are suffixed with '_MODULE' for symbols with the value 'm'. > > Here is a conflict; CONFIG_FOO=m results in '#define CONFIG_FOO_MODULE 1', > but CONFIG_FOO_MODULE=y also results in the same define. > > fixdep always assumes CONFIG_FOO_MODULE comes from CONFIG_FOO=m, so the > dependency is not properly tracked for symbols that end with '_MODULE'. It seem to me the problem is in autoconf.h/fixdep, not in the Kconfig language. > This commit makes Kconfig error out if it finds a symbol suffixed with > '_MODULE'. I know you don't care, but I will voice my objection, for the record: Kconfig is used by projects other than the Linux kernel and some of them do not use the autoconf.h functionality. For such projects this restriction seems arbitrary and potentially backwards-incompatible.