Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp293387rwb; Tue, 6 Dec 2022 21:26:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf6O4P2OBqqqX+8V/b2/5sBfAHsnNMf+2qQMFHBelUD6h74GyXSi3FBEe8ZTy365G0N5iH9k X-Received: by 2002:a63:fc14:0:b0:477:86c1:640c with SMTP id j20-20020a63fc14000000b0047786c1640cmr62538191pgi.226.1670390783682; Tue, 06 Dec 2022 21:26:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670390783; cv=none; d=google.com; s=arc-20160816; b=ht/JpyvUF9FDEeHO5UMY5XJAW0XWhK0hUGqGLt6OFnwNmTNhApwspaz8Wbhe0x5F0T kJ2HwcFc0z+aSy1XGXmLGLp+EbOP7K0G9YtAD/ESyeNwC9clzpHrKMw2De208xF+ppef IbyzN6aDL227C/VFGCieP15WD2lw6bK7f6YocFNpLeKHvIJdUHh1nh+RnuFMv4oGj+2/ FJbN9cHVDqWZjnRx5S2R6mGSSw0/V21HeJUAyE68D3uC7+1WnizQM4ljTH0lviUv9KQp l+VxF42Q+/2xfd12p09+sFJCXIJLkrTSHXO+9CWr+Ydq90CskGzbHrHFruL03T6xDBLq 0FBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gmNqBY6w4AK9O4I8y3E96Tg5h7/Vhp7NSY32+7XVFbg=; b=EqF9bhvJXjGcjuvAKpX8PGgoFYuJuWMs70DigqSf04pakDoncl0rLBhkbk6UFoz3an c9SAMjHYT9j8Slxmx96bSL/6QIbpTuTXCr97k80lArP1MTKVgcH/fPFnYZ4LONZE6VGT gz3rm1/rBXnxG07evN8DUlnioBGctoaBiQ3GlXakOpkY9y8NgnbNCznDGyrN2nqR0dG5 lp/RFY/CuTMmy47ej43rXD08lb5fWk2CTHQQ7VuOh8PSrZ1EicBkvmDWBXDUrt6jHxOx y5VQyMe7s+r8XegNp6hK80nbaeVy28kxVTLEqqL5xtS/FciOeF1LSpnmDlXPVa+J12WV xPaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=PRXmY7eD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n190-20020a6327c7000000b0046edc0aba77si19744549pgn.345.2022.12.06.21.26.13; Tue, 06 Dec 2022 21:26:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=PRXmY7eD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229462AbiLGFKW (ORCPT + 77 others); Wed, 7 Dec 2022 00:10:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbiLGFKS (ORCPT ); Wed, 7 Dec 2022 00:10:18 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D288354B00; Tue, 6 Dec 2022 21:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=gmNqBY6w4AK9O4I8y3E96Tg5h7/Vhp7NSY32+7XVFbg=; b=PRXmY7eDUZPnaO0xmD5wSHn6Ni ak2PhljcKGOPoss6GNgxXq3Pplu9kwBBxyQH6sxlp31Gq9yzW+h6id1e7/CAZL1DhF9cilCQq8WA/ 8KmQrIdhK45DzPWbrTYe9mJPI3en1dSYcLKovFjRWU8PlwUalJuH5g7vFLJkMsk7yDrNVkgnSwcbl 7FBFKQPXWeSESjoL6kWsAkIXEkMyeac/Ldus+mS6XzSPOp8HZmRENGk3Y7rtK8loWpqjlXyL8X9LC yPEK37qBsYcAUM4XPGYf2JLgXVIYsvSQNHlVu8uHaQespNdwt+7DRW4M1lbFlM33opfVffAe+qbx1 32R5QvPA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p2mh8-00BJwa-0p; Wed, 07 Dec 2022 05:10:10 +0000 Date: Tue, 6 Dec 2022 21:10:10 -0800 From: Luis Chamberlain To: Arnd Bergmann , Thomas Gleixner , Masahiro Yamada , Steven Rostedt Cc: Nick Alcock , Geert Uytterhoeven , linux-modules@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , eugene.loh@oracle.com, kris.van.hees@oracle.com Subject: Re: [PATCH v10 05/13] kbuild: remove MODULE_LICENSE/AUTHOR/DESCRIPTION in non-modules Message-ID: References: <20221205163157.269335-1-nick.alcock@oracle.com> <20221205163157.269335-6-nick.alcock@oracle.com> <87mt80l2py.fsf@esperi.org.uk> <5f0a5ea7-2d48-435f-aaa0-82b6ef8cfcc5@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 06, 2022 at 09:03:52PM -0800, Luis Chamberlain wrote: > On Tue, Dec 06, 2022 at 10:02:30PM +0100, Arnd Bergmann wrote: > > On Tue, Dec 6, 2022, at 21:03, Nick Alcock wrote: > > > On 6 Dec 2022, Geert Uytterhoeven uttered the following: > > > Only MODULE_LICENSE invokes MODULE_FILE and thus ends up introducing a > > > KBUILD_MODOBJS entry that triggers things going wrong iff not a module: > > > so only it needs to go out (or be replaced with a variant that doesn't > > > invoke MODULE_FILE, if you want to keep the license in too -- > > > > That sounds like a better alternative > > > > > but if the thing is no longer a standalone entity at all I'm not sure > > > what meaning it could possibly have). > > > > As far as I can tell, the general trend is to make more things modules, > > so there is a good chance that these come back eventually. If the > > information in the MODULE_LICENSE field isn't wrong, I would just > > leave it in there. > > Tooling today uses it though to make a deterministic call on if something > *can* be a module. In particular after commit 8b41fc4454e ("kbuild: create > modules.builtin without Makefile.modbuiltin or tristate.conf") we rely on > the module license tag to generate the modules.builtin file. This in > turn is used to allow modprobe to *not* fail when trying to load a module > which is built-in. > > So we can't just disable the tag for when the code is built-in as *want* > to carry it when modules are built-in, that is the point, to help > userspace with this determination. > > I don't think we want to revert 8b41fc4454e as it means we'd force Kbuild to > traverse the source tree twice. > > Geert's point was not keeping MODULE_LICENSE() but instead the other > MODULE_*() crap for things which are not modules in case in the future > code becomes a module... > > But I don't see the point in keeping things around just in case, if we > want to keep things simple. Just use the SPDX license tag for the license. Or if you really want to keep it just make it an *eye-sore*, and comment it out. I don't see why at build-time we should suffer. Luis