From patchwork Fri Feb 17 14:10:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13144760 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 58F26C678DB for ; Fri, 17 Feb 2023 14:11:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbjBQOLl (ORCPT ); Fri, 17 Feb 2023 09:11:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjBQOLi (ORCPT ); Fri, 17 Feb 2023 09:11:38 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A5B36BDF1; Fri, 17 Feb 2023 06:11:28 -0800 (PST) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31H7iGq0007518; Fri, 17 Feb 2023 14:11:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2022-7-12; bh=SEZJAVxBkRBJDjyfqQmJkvnbFEC56McKlujiS3nD0mk=; b=Exe1SlWf6dirke1pzkGZoZDWQuA0OohVke1XlV6XZagAHf50G1CgKObSjAFMBE6z3PQe 4VTYXtocjej/T5r1sW9cTnq0BZlIUum2UDc87kOjFqdF8GzvNPXai6zSLYBnuGdaJ/57 CjnQRN2kufiKBnFumLvbJOv1Plrp67U6aq0Zd00OxVFLl9i68oVrBxkdfcVCYWWQzpQl SPW6LiCiSfZexcRUUXQPrsGtQrimtgIdc+RjOqtcRTK2Wdmds+LBFv/T5q3Dftf1iO/i BS77BARXGCeZH5kHDlxAxdxfGY+PUrWiyWKbL8BC5gltsM5W71av6u9l70DHo/kOHGVW uw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3np1m163dq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Feb 2023 14:11:22 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31HCjndi036124; Fri, 17 Feb 2023 14:11:21 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2172.outbound.protection.outlook.com [104.47.56.172]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3np1fa6s3n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Feb 2023 14:11:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NhZ70DD1iB2J/KzlK3puGuqXedjKOxy+EnVk5/Ri3w4yFx4kgC45X9Rskq14z8za4WIs1R4qEQK8AkvkWQYxaCiOnGRgjfzrblbdBBDcj5UTHbHE9Q6jNKCVt2SKNNfFWIA7lLJf/1nvYX5V46zhcJwHcz87dgnfed1xlXTSqwFI6qxMKdyftVdEgHs6d/Ny4E8Ow9tCJPe7scqq49imTqrtdUw0daPf0xVMCCZ5lYX32+//h+ykrh8+nXsj9NWWkxLhdT8vaAEcVS+MKQ7Za4jzwVz9LSlfr/mffnLR04d/uCnebJpLjVX8gc2lErpRWf1nHEmQyyWTGS1S5DucIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SEZJAVxBkRBJDjyfqQmJkvnbFEC56McKlujiS3nD0mk=; b=m0+jct3RiXxVDUjhh4t3+v91p50CWtC09kILWm4A8c8JVaN0qSlg9ZMY0B1Io8cj4w9hqkDJlnfZh3vE7QaZzOwpdlhmqtOKCV37dR80bCOSr3xCeuccuTjRw0frPfZ/PJ5aRhENlSOHHioPVNNvVgCNFIBZcWoWnn8h85Yh4ws+z/07ZbWQzmTRG87/tvu8PHS4h6FKLnFBn6XAbqqmITICj6yon7AFDw37a4fGM0Qxow62S/ar3cicDmIYJQEHsE7g2n0ND0d6MdMm4jL4TVx690BHCi0eiE2QBA3ht1Jw3rOHrsElocbUwo9JomDmQjFOWT4MoIlKlw2+Tqt8RA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SEZJAVxBkRBJDjyfqQmJkvnbFEC56McKlujiS3nD0mk=; b=c0dbeCzDjbVE/qFhC6ITerNvLYgfMeLwzyq/OtAQ5cmd8UhVDEJ91ZC1rDOw/OLJCVJ8HWMlgHUK+Rldsoi0kPxbrWnKzGnNtZpxUaSzIJqEgrN5c9HbAJUKK+6tKwfFyXXgE7YjGA1/OOPPqFO1N7LlbYBktkiiUfQos7ANYG8= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by MW4PR10MB6420.namprd10.prod.outlook.com (2603:10b6:303:20e::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.12; Fri, 17 Feb 2023 14:11:18 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::d0f7:e4fd:bd4:b760]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::d0f7:e4fd:bd4:b760%3]) with mapi id 15.20.6134.006; Fri, 17 Feb 2023 14:11:18 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: 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: [PATCH 02/24] kbuild, PCI: remove MODULE_LICENSE in non-modules Date: Fri, 17 Feb 2023 14:10:37 +0000 Message-Id: <20230217141059.392471-3-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230217141059.392471-1-nick.alcock@oracle.com> References: <20230217141059.392471-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO4P302CA0037.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:317::9) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|MW4PR10MB6420:EE_ X-MS-Office365-Filtering-Correlation-Id: 6b4c1098-caa0-4d4f-9b65-08db10f0d6cc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7XMG4N72Rn6WxgmCG/GdJ0k7Q3RWa6vhDrRvfXpTO4VQtzX53w7rfCwRR1hmZ3bqvHOOIP2XiguSpzOHtd7L5tn0gSJxpusnVKfhTnIs/qTrP2FaOhHByP5p0aG+S+100iBMvRiS831MmxlOzMGhpNpDgsEm4+8TvHA7vnqFTibXyoSF/pWhayPzMAG28SpQCEx4o621SxGj4tUE/imflIWZpHkAUQkQYAS9JcGtGhkbKHdgOhCKFqBoh1eefkVDv49XGjnhqG/OVmmLBheoKjnJwpvcJID3xltxxjih4wn3lkTgDK3WTxlm2BGX/5TvGyb7IOuXrEL+BGFKGkP+EeGhdvTSjUGZWwRpAinCia8DK8sqK9mU7fzb/ic/kh/wdGacxYvJ8rgeFaHxuqkfoKjV1LFsNCzBBeH1qWmp2n6SLYFQq9W5bPlgTVPoTLxXJZBzLwr8g83U1Y7HgsqK9Hek7N05vw9kdUytotbVsg7sB6oDcbebG+aJe4NKOFglqc8W8TgreJ8+oLtJPpA1q1shYeLGsEFiG+ktCTz93dMz83rpoECKlKU4Md5mmKq7/V5y6nFAR9oomUAD1DRPGT7E/WEemMqON2BWiNdhtbeyyAT8nw61rqii3aH7oYFWZxgufdvOJHXrcu26WjQlZA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR10MB6798.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(396003)(346002)(366004)(376002)(136003)(39860400002)(451199018)(8676002)(6916009)(83380400001)(54906003)(1076003)(66946007)(5660300002)(8936002)(2616005)(316002)(4326008)(66556008)(41300700001)(66476007)(6666004)(6506007)(186003)(478600001)(6512007)(36756003)(86362001)(2906002)(38100700002)(44832011)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wqkShMpSEKMWdyJNEU768j76dTjV4FzJ1rsYuH+ivd/flz6gVd2Gsrx012R4Vl2+W1wf7MlJX7n4ls5Etwyxn6YgygSpQ2HMQcme12pNY30OxPYvFtG971zMYhAToTpnjkA/rAPSI/Y488nkIFSy/dk8ROh1MWjLQUV+SBzSxuYzp0/ro7Uw324WcvC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R2HHyAeruDkkhe2CfZ9TrzAnRErqd4p8OJPJFLvhaXRUWRMxcmjrZNAgVSHL6hx+w2krBNmWmZmRagx14GYwBLjTw10NLS/9a93o+cxMnnW0pi+h11lBf17BKSVWyj4h/wempAg23G5F8N7dP6vnbV8OPk10DvomZjfOGnlOMcaQRqd+4Xo3pWjGoLzAgbcPU0alCA6ueKgKPerpRxSLme/3WPMbKps1/0Te6vV366LbJNQAbihX6ZwmY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b4c1098-caa0-4d4f-9b65-08db10f0d6cc X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2023 14:11:18.6392 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 09B7+K6rtGdl5U6CwKPptRSF9dWatctamnI1GR4COpY7wLRwaHztXzvC7n6eodJkwyXlkr4LSYa4WTIigi3YFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB6420 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-17_08,2023-02-17_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 adultscore=0 mlxlogscore=999 phishscore=0 spamscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170128 X-Proofpoint-GUID: eqlWxWDXmDCuQW1w2kUg6qMfhDPwEOE3 X-Proofpoint-ORIG-GUID: eqlWxWDXmDCuQW1w2kUg6qMfhDPwEOE3 Precedence: bulk List-ID: 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 --- 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);