From patchwork Fri Feb 24 15:08:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13151364 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 C6B36C61DA4 for ; Fri, 24 Feb 2023 15:11:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbjBXPL0 (ORCPT ); Fri, 24 Feb 2023 10:11:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbjBXPLW (ORCPT ); Fri, 24 Feb 2023 10:11:22 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A4186CF25; Fri, 24 Feb 2023 07:10:39 -0800 (PST) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31OEoA0E008485; Fri, 24 Feb 2023 15:09:46 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=qUOu7ZkR90CCRUAP8ZKAezDONFH1ftTYXG7o9FuDeO8=; b=Uvcgedbxgb4QcJGuUtniM/dw2qgPtOI2yDvB3iXqoqLcGWbgdunzwk/XNa1/tthf5bc5 hs+pXz/vZRpip36+DxV3coepl0jrfuHzs+ul1Ser0k3FB7eeVXqBR9z7yJUx3IsM4s1Q AvHDmimSAwKtF7itsUsbtD+t8s+Y95yCYHjI6Ln/2rag6oLm0JdkLLnVIWY3GERbhzTu vBW+faq13CK0MYZ3byxhqOq7jdQ0ITh3KRbau//UQeJnRDEZL12i6PDm0VLBjd7UVNjJ Ss0ip5p4rwPUbWRAN9rybMF6TZcDdCUp48vlnNpsPPFa41AQWzafgODIN2HDDZZpEvV5 5Q== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ntnkbw738-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Feb 2023 15:09:46 +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 31OEkZBJ000677; Fri, 24 Feb 2023 15:09:45 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2105.outbound.protection.outlook.com [104.47.58.105]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nxsb4dupn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Feb 2023 15:09:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nt8mF3kdSeO/TGvGmrbnc0n3RHgE4IHFyH/XpzfKGu7sQA7FtBFdemUMcTuMLyk23OInXjRFW1Wnm7Lhh3sz9sIX+yJFxZiz84ZcRG7vEbjuM/G+++FNVxKEV8qyo42aaA6l/BhuwQp9u+3+UZRv2A2/999fGmjCgXLMeLe74s3ytWmkOKY1ebb7pQBy+5SvC2e3n2DUn4oeQCiyc74QAG0Hw/bMEGd5z1K82dXfVXNTiKUjxbgf2OSfEyMSWKPj0QApYwRb8wXCcAMVBCBEjPCopeOcJ7/2RKhRLArixufWB1FsjWLQnhAh8q4w3vhZAw0MXI/fhbbiMWUaPcs3HQ== 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=qUOu7ZkR90CCRUAP8ZKAezDONFH1ftTYXG7o9FuDeO8=; b=fdfBZpGGBPqnkcr+f/n80TQnGZ7baH9hOZatPD8D6aHNvRZOB80ASl+OABMfxkmbLYe2JiWrb3/yOxBkn0BGj3Vu7KMhGOuxm6lj3HFBD0m5mf7gsQjbldxSatoZ1UYbUwA/s0w8/0NLOdhVOYoy3v8Hx6lDi2/Lw7u+FLY4FhNhN/zCWEzeHReePWZnabtRwk/N36VDUJHtVY2Rlbku5tidoa8+dY+Skgdz16PO9VUfdaJW/uqZnt0bni9QPmi+UtRLehvSPE9M0Gl9jbDDGgDgcnOFBQmM/v2SBZXsbM0GaF5CXgRVeMdJ0CQVgdvPwK1OfeQ58r9wPD3HNnWPTA== 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=qUOu7ZkR90CCRUAP8ZKAezDONFH1ftTYXG7o9FuDeO8=; b=jv7alJh23PPKkaGYvx//RCKOFTpiUPQg2nKd8AnqpVHyGTHSa+r+Qy6nT6nUDcrw76hiWahejLBdXSo8pKRgLjYT9qMyRXMM0PzXVvOgTNrAaJN8RxA+U54vYnFQBvoo6Fnh4FKtdgO59PM+ytAaa51XWFOKj3+QTDjmM6liacA= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by CH0PR10MB5244.namprd10.prod.outlook.com (2603:10b6:610:d9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.11; Fri, 24 Feb 2023 15:09:43 +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.019; Fri, 24 Feb 2023 15:09:43 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , Krzysztof Kozlowski Subject: [PATCH 17/27] memory: remove MODULE_LICENSE in non-modules Date: Fri, 24 Feb 2023 15:08:01 +0000 Message-Id: <20230224150811.80316-18-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230224150811.80316-1-nick.alcock@oracle.com> References: <20230224150811.80316-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO2P265CA0438.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:e::18) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|CH0PR10MB5244:EE_ X-MS-Office365-Filtering-Correlation-Id: 04d2a79e-d22d-4fd7-681e-08db16792899 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QODKDMdN85LLfS3Vof0mt0aOCNxlDutGfdMbQ3028UxCikOZdZTNvgJqNtn2ObD8CENAutMrMwb9Md3bqp5zWY9yPL2XFh2fWPOGs+W2zpro/7e4HgaztjAKD/y1QIakEdeoTi/tGcueYiRz3Eay3f3ckbeu95UhfQmeTVbJ4F2ifvWApGL/e+WxG1ut/5nEHwrhJ6gj48WjY5wuKXgqOxFFX6qiw8wZ6j1R5TOLJu99YWdIXmTOVnLPNFqzaw/9Pf27VTLMm9acI/rvYNtlt/mZNaWhKgltRr83N+ZkduQvzAR2sS5A1ma7vx3Zy/FpwLZCkWcUH/K69CgSsrikjEX9xxvSKV1CeQF7Z/LsxWsqhTy/nXqZ5Um9OcK3QQ+8HatKdJSLsJ8RQ4xcTUmSdhgEEFpi0rbSRQJaxwBD3Vl4+UT1uvVVNT8YOUaJYq7LgQIXeAihypigPEJ7k6x8tf706x8hyn4NAstfQHawhE+ZJu+H7IZKuFsUv/es9HcNAjZQdDFI7DoO1ExuMxQcWNCQncKuMZnm7g71sLYn/oBRtmi+yNRgcXMBX7ezsxehJQ344t5MlCxbIMcKza4n95BuTMWrUo0tG1rgd1wh/tF9Jz/pfoKThxJjWHXesXWLH0Yw1phJuSjFwYg+HupmtA== 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)(346002)(396003)(136003)(376002)(366004)(39860400002)(451199018)(54906003)(316002)(6486002)(8936002)(66946007)(44832011)(4326008)(38100700002)(41300700001)(8676002)(66556008)(6916009)(5660300002)(6512007)(83380400001)(66476007)(1076003)(478600001)(186003)(6506007)(6666004)(36756003)(2906002)(2616005)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dPlgbVjem/P7mwQjMBh7Dq4YntxPsZgswbXZo+a42F34G55d6wyfWeWoFpcLofOlxRkovqSiObF/OPvKrP8+v31taBtD3iiZc9cYDc22ULH2OJsAsKYdvuGrBr9zCYsXUwdsgqrtLN9ZG5b1MLxcmhBVaO5/G5qH0KCG0komYyvu5Hph9PV3YsctL7TsFSidTx9ACSEWjr7q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OmnC2UYhvYYvanTquKu0zAQaxPZx/EN0LB5ezqACGa3jPSml9jMm1rx7nG+0rhCVqWazrN/q/TqSg85okXo6niGvfXAtbJHzQVaPxDz7Pdecv5EhKJHw37Aop5nWmmkG04GCOjdvPQ0uyU3EBpTe/Nf32NayWVMBqdvDLkjj2olmlTifL6ZAvZovO7e1ed/XhinPrn5jqPuA7nh7DaHRBAIaefZZ0F8= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04d2a79e-d22d-4fd7-681e-08db16792899 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2023 15:09:43.2940 (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: psPLPezPQRXtg60Lej2+7dOV3dYZSQV6IgWXk+c/Pv60T7sH0XSSw39XxDFbrhoxqYL1COk/v1ntsGB2hfnClA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5244 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-24_10,2023-02-24_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 spamscore=0 malwarescore=0 adultscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302240118 X-Proofpoint-GUID: 3yTmpsTJt_DjPDYIdmj6XM0obo5EsgcM X-Proofpoint-ORIG-GUID: 3yTmpsTJt_DjPDYIdmj6XM0obo5EsgcM 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: Krzysztof Kozlowski --- drivers/memory/bt1-l2-ctl.c | 1 - drivers/memory/da8xx-ddrctl.c | 1 - drivers/memory/fsl_ifc.c | 1 - drivers/memory/mvebu-devbus.c | 1 - 4 files changed, 4 deletions(-) diff --git a/drivers/memory/bt1-l2-ctl.c b/drivers/memory/bt1-l2-ctl.c index 85965fa26e0b..78bd71b203f2 100644 --- a/drivers/memory/bt1-l2-ctl.c +++ b/drivers/memory/bt1-l2-ctl.c @@ -321,4 +321,3 @@ module_platform_driver(l2_ctl_driver); MODULE_AUTHOR("Serge Semin "); MODULE_DESCRIPTION("Baikal-T1 L2-cache driver"); -MODULE_LICENSE("GPL v2"); diff --git a/drivers/memory/da8xx-ddrctl.c b/drivers/memory/da8xx-ddrctl.c index b32005bf269c..0ef8cc878b95 100644 --- a/drivers/memory/da8xx-ddrctl.c +++ b/drivers/memory/da8xx-ddrctl.c @@ -164,4 +164,3 @@ module_platform_driver(da8xx_ddrctl_driver); MODULE_AUTHOR("Bartosz Golaszewski "); MODULE_DESCRIPTION("TI da8xx DDR2/mDDR controller driver"); -MODULE_LICENSE("GPL v2"); diff --git a/drivers/memory/fsl_ifc.c b/drivers/memory/fsl_ifc.c index e83b61c925a4..9e8d8e9c5ad8 100644 --- a/drivers/memory/fsl_ifc.c +++ b/drivers/memory/fsl_ifc.c @@ -327,6 +327,5 @@ static int __init fsl_ifc_init(void) } subsys_initcall(fsl_ifc_init); -MODULE_LICENSE("GPL"); MODULE_AUTHOR("Freescale Semiconductor"); MODULE_DESCRIPTION("Freescale Integrated Flash Controller driver"); diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index efc6c08db2b7..406fddcdba02 100644 --- a/drivers/memory/mvebu-devbus.c +++ b/drivers/memory/mvebu-devbus.c @@ -341,6 +341,5 @@ static int __init mvebu_devbus_init(void) } module_init(mvebu_devbus_init); -MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Ezequiel Garcia "); MODULE_DESCRIPTION("Marvell EBU SoC Device Bus controller");