Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C33AC6379F for ; Fri, 17 Feb 2023 15:03:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230220AbjBQPDx (ORCPT ); Fri, 17 Feb 2023 10:03:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbjBQPDs (ORCPT ); Fri, 17 Feb 2023 10:03:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1997570944; Fri, 17 Feb 2023 07:03:19 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3FCE261D58; Fri, 17 Feb 2023 15:02:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60583C433EF; Fri, 17 Feb 2023 15:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676646164; bh=j6dcEhmpBZz4rvKq3tdsoEKUS2cdD7vZ0LtoKMJz2Ys=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=dJx1betl5qK2udc/Bk5Kt7TCsKffHyHDMt7EzRPbIN2lP3ptxZKoD1g2QbnTeDmWL fh2eq7Cnskap94xQ1aa4bcXZBV2wsPMAyjr6bIy6w8m6iCT1OC0qPf24Q+tAJiHhaE Q/bzRIiljZbKRAeJo3mpcXzoSwiV/W0QBHDB+Gu4MrT4/VIzWXgsisPL4JYoDuItur qv8Glq5GPOYPxIztsMTU2Qiqqih4fUhgPNpjZd2Asd4PagPjEGwFML2KT9HSJL6OTn mBDAClnmW0J2bnHSXW+cd8GLEGVE7Vn64CgfthGTf2yrMuQPXXNGsVI0Kw6LK7HRNm 0IN0NHiErLcNA== Date: Fri, 17 Feb 2023 09:02:41 -0600 From: Bjorn Helgaas To: Nick Alcock Cc: mcgrof@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , "Rafael J. Wysocki" , Bjorn Helgaas , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 02/24] kbuild, PCI: remove MODULE_LICENSE in non-modules Message-ID: <20230217150241.GA3400483@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230217141059.392471-3-nick.alcock@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 17, 2023 at 02:10:37PM +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: "Rafael J. Wysocki" > Cc: Bjorn Helgaas > Cc: linux-acpi@vger.kernel.org > Cc: linux-pci@vger.kernel.org I squashed this one into my pci/kbuild branch for v6.3, thanks! > --- > drivers/pci/hotplug/acpiphp_core.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/pci/hotplug/acpiphp_core.c b/drivers/pci/hotplug/acpiphp_core.c > index 853e04ad272c..c02257f4b61c 100644 > --- a/drivers/pci/hotplug/acpiphp_core.c > +++ b/drivers/pci/hotplug/acpiphp_core.c > @@ -45,7 +45,6 @@ static struct acpiphp_attention_info *attention_info; > > MODULE_AUTHOR(DRIVER_AUTHOR); > MODULE_DESCRIPTION(DRIVER_DESC); > -MODULE_LICENSE("GPL"); > MODULE_PARM_DESC(disable, "disable acpiphp driver"); > module_param_named(disable, acpiphp_disabled, bool, 0444); > > -- > 2.39.1.268.g9de2f9a303 >