Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp814507rwl; Fri, 24 Mar 2023 02:16:44 -0700 (PDT) X-Google-Smtp-Source: AKy350Y/2HLNYWxjvBNAzXwWPH1LSkowT7d0ghngRTUDs5KZJgK9ulmD/Os6ciJWs649n8LDbq2l X-Received: by 2002:a62:1a53:0:b0:622:ec07:c6bc with SMTP id a80-20020a621a53000000b00622ec07c6bcmr2270357pfa.15.1679649403961; Fri, 24 Mar 2023 02:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679649403; cv=none; d=google.com; s=arc-20160816; b=h7dwy45MC564n4bU0NR9zipkIUi1pqSeSCBMABBBcicNdiIS/sHdR5f18fbPBaKwf/ sLGIWCVgieYV4NkGD8qbiQ3Tjav7AeWi7KmuWFiqJGo9ript0oNN8o88lXRH7gjoGXEm cuGZMeTCVIPxcsZej6aHPOTF9UJlacjuk+TPfaoaTLivCruFn+rr4yti10hNgmHW/dY5 7/EaFRnBT7kWY7JVVSJYroIl7NW5LIpuZRYh4TaAiLx4LS9VPlo/ONMapCp3hVvBPs6K 0+DWcl9njIoDVNy1ttnuESwol6srMQPMmEL/RLjmJBWPxbIOFeCXrXktHIISK8drcDVS 1u6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=afw+Q0rJ5Gh/NkFL7Svz/vCSPFgc2Xonb7nM7kmsutE=; b=VFbVA/elhs0IDRlKCe90TaGS3fdET4U9u49CGux/hLVe5tmQLRtEAbLVHLHpipT7JS stshAbAaxZCt8BpSd7+JsEaf9Kwo6SkesIva2rmdWQLp1cnivfUe5/bVFqPyOFyQAQ8Z NlJoa0DmrntIJraDILYFpuNdumQ7xjqDC0AIMLEBQyAH45bP8GWvDo7IGSRh9UFZQm6q 8VOlCb4a7bGsQFzE1+WmVQC3fB5nNy6P0l4xcMiL4FIK8BtzukVX61q4TY6hIfIvuYvQ xkG9LH3jiNMzB/79KboN2nuKrfN2fDA6/twHuZQRpSnJhlL34Nt0IfskMhhqvDOZGc3k evOQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h192-20020a636cc9000000b00513237f429asi1271046pgc.659.2023.03.24.02.16.32; Fri, 24 Mar 2023 02:16:43 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232032AbjCXJIj convert rfc822-to-8bit (ORCPT + 99 others); Fri, 24 Mar 2023 05:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232017AbjCXJIg (ORCPT ); Fri, 24 Mar 2023 05:08:36 -0400 Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E33D7BBA7; Fri, 24 Mar 2023 02:08:31 -0700 (PDT) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-5418d54d77bso21582777b3.12; Fri, 24 Mar 2023 02:08:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679648911; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Roc/MzbwWfU/L3JLIUeZiBYVx/CrsAmPFC4IMxSQC4o=; b=lZD2aeEDms+Wgole/+nAB8eYjckk7Yq5BQw2dZFiCjYdRS5d25B1/pv3wb8HZIAfmG BPw8pSm+inymB/IGmEI+4oWJAV1wn5Q/kvfFITjNrOLKTQ6f8PhAOb4BB9VU3VrFOQZ9 cM9+da6LxwXKMjaJGf/EFjpng5s4ojb30FNWjZ1ObFLi2MF8rcJDPayhJzVYVRjRli5f oWG0f2rVVP1ft2hZgY91fK8W+vFUKIgO1b8jgC03yDs2wKs5pm4OrxWHA9ZkEahkI5QP roLbXPrKN9xvA+3bbk9rhan1XE1NHh481vyVT4gY7Ina42m3YefwyTtsFT3fYbV40PIS zzAA== X-Gm-Message-State: AAQBX9cEGxh2x3pPdGE6CIVywTiI8vAVCgNwRGTTzvSv1sqgmJn/9yXK 4owmz0WYzADGsTjvClVpoDHIHkTUl4DODA== X-Received: by 2002:a81:6dc6:0:b0:538:5b3a:f11e with SMTP id i189-20020a816dc6000000b005385b3af11emr1635273ywc.35.1679648910966; Fri, 24 Mar 2023 02:08:30 -0700 (PDT) Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com. [209.85.219.172]) by smtp.gmail.com with ESMTPSA id 7-20020a810707000000b00545a0818492sm313317ywh.34.2023.03.24.02.08.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Mar 2023 02:08:29 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id b18so1358939ybp.1; Fri, 24 Mar 2023 02:08:29 -0700 (PDT) X-Received: by 2002:a25:688a:0:b0:b46:c5aa:86ef with SMTP id d132-20020a25688a000000b00b46c5aa86efmr731865ybc.12.1679648909365; Fri, 24 Mar 2023 02:08:29 -0700 (PDT) MIME-Version: 1.0 References: <20230302211759.30135-1-nick.alcock@oracle.com> <20230302211759.30135-11-nick.alcock@oracle.com> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 24 Mar 2023 10:08:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 10/17] tty: remove MODULE_LICENSE in non-modules To: Luis Chamberlain Cc: Greg Kroah-Hartman , Masahiro Yamada , Thomas Gleixner , Christoph Hellwig , Nick Alcock , linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , Jiri Slaby Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=0.5 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Fri, Mar 10, 2023 at 8:42 PM Luis Chamberlain wrote: > On Fri, Mar 10, 2023 at 08:31:30AM +0100, Greg Kroah-Hartman wrote: > > On Thu, Mar 09, 2023 at 02:38:10PM -0800, Luis Chamberlain wrote: > > > On Thu, Mar 09, 2023 at 05:15:42PM +0100, Greg Kroah-Hartman wrote: > > > > On Thu, Mar 02, 2023 at 09:17:52PM +0000, Nick Alcock wrote: > > > > > Since commit 8b41fc4454e ("kbuild: create modules.builtin without > > > > > Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations > > > > > are used to identify modules. As a consequence, uses of the macro > > > > > in non-modules will cause modprobe to misidentify their containing > > > > > object file as a module when it is not (false positives), and modprobe > > > > > might succeed rather than failing with a suitable error message. > > > > > > > > > > So remove it in the files in this commit, none of which can be built as > > > > > modules. > > > > > > > > > > Signed-off-by: Nick Alcock > > > > > Suggested-by: Luis Chamberlain > > > > > Cc: Luis Chamberlain > > > > > Cc: linux-modules@vger.kernel.org > > > > > Cc: linux-kernel@vger.kernel.org > > > > > Cc: Hitomi Hasegawa > > > > > Cc: Greg Kroah-Hartman > > > > > Cc: Jiri Slaby > > > > > --- > > > > > drivers/tty/n_null.c | 1 - > > > > > 1 file changed, 1 deletion(-) > > > > > > > > > > diff --git a/drivers/tty/n_null.c b/drivers/tty/n_null.c > > > > > index f913b665af725..c24f75942c49d 100644 > > > > > --- a/drivers/tty/n_null.c > > > > > +++ b/drivers/tty/n_null.c > > > > > @@ -63,7 +63,6 @@ static void __exit n_null_exit(void) > > > > > module_init(n_null_init); > > > > > module_exit(n_null_exit); > > > > > > > > > > -MODULE_LICENSE("GPL"); > > > > > MODULE_AUTHOR("Alan Cox"); > > > > > MODULE_ALIAS_LDISC(N_NULL); > > > > > MODULE_DESCRIPTION("Null ldisc driver"); > > > > > -- > > > > > 2.39.1.268.g9de2f9a303 > > > > > > > > > > > > > Nope, sorry, this is not good to do, please fix kbuild instead of > > > > forcing a tree-wide change like this. > > > > > > Masahiro Yamada already NACK'd it such effort: > > > > > > https://lkml.kernel.org/r/CAK7LNAQLttPD=Ae==e0CYeQtS78=o_JZFK+zxa29JnUYio52Ug@mail.gmail.com > > > > > > And his descriptiuon of the reasoning and logic is explained here: > > > > > > https://lore.kernel.org/all/CAK7LNASL7_RgfASstBvN6AzhR=nMU=HsQvODf5q13Xud8tBWRQ@mail.gmail.com/ > > > > > > Let me summarize it though with a few quotes from him: > > > > > > "Having false-positives in modules.builtin should be OK" > > > "In this sense, having always-builtin entries in module.builtin is OK." > > > > None of that matters, sorry. > > > > Again, all I am saying is that you can not have some MODULE_() macros > > that are ok for code that is built in, and some that are not, for > > "reasons" that have to do how you all are treating the build system > > infrastructure as you are now putting arbritrary requirements for all > > driver authors (of which there are thousands) to know this. > > As noted once again, it is not putting hard requirement. Future tooling > not yet added would just not benefit from distinguishing symbols for > your modules. > > I'm happy to live with module authors not wanting to remove the module > license tag from their modules if they can never actually be modules > from not benefitting from the above tooling gains as its just cherry > on top tooling gains. Apparently lots of these patches have not arrived in linux-next without Acks (we're still discussing about this, right???). And some of the modified files have no SPDX-License-Identifier lines yet, so we are losing important licensing information: $ git grep -L SPDX-License-Identifier -- $(git show $(git log --oneline v6.3-rc1..linux-next/master | grep "remove MODULE_LICENSE in non-modules" | cut -d " " -f 1) | lsdiff --strip=1) drivers/bus/arm-cci.c drivers/bus/imx-weim.c drivers/bus/simple-pm-bus.c drivers/gpu/drm/drm_mipi_dsi.c drivers/irqchip/irq-mvebu-pic.c drivers/reset/reset-axs10x.c drivers/reset/reset-hsdk.c drivers/soc/sunxi/sunxi_sram.c drivers/video/fbdev/asiliantfb.c drivers/video/fbdev/gbefb.c drivers/video/fbdev/imsttfb.c drivers/xen/xenbus/xenbus_probe.c lib/glob.c Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds