From patchwork Wed Feb 22 12:14:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13149093 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 022E6C61DA4 for ; Wed, 22 Feb 2023 12:18:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231856AbjBVMSM (ORCPT ); Wed, 22 Feb 2023 07:18:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231946AbjBVMRr (ORCPT ); Wed, 22 Feb 2023 07:17:47 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49D1139CC4; Wed, 22 Feb 2023 04:16:48 -0800 (PST) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31M8xEkk029560; Wed, 22 Feb 2023 12:16:01 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=N77FyshD7+elqGy+wtJI+TxNXB/cysj/7vXXeaV4hC4=; b=dwNedKsduEBNPnph8tvnI7ZAdm97oUWcicSLS3bCXeD5Ax4kW36TFczWX6olQ6yj1aYu xaSJ8Kab6MfyVRVfUT8dKEz7Zu5/grrOZOKOZOBItTwIjVzm2+Uy6upX/znZah9f9UZN 2lrB9WwGbl+yDJNpyyfW4d+AMVaN+TPSlmkYMNt+eH7YCFFsH058/MCHKedL372gKEVl CaDIx8KnnFXklvTrqBb0gNgBO+KbZfOG4FeUfJacrUuNncxu0q/bExWRe6dsaujT2lEi 8JdpD7Nk5gOi/26umAmkSJw8AZefK/r0ByMn+RJxNo+jOzi9sPrADY76KntX/uPWT1+l qA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ntn3dqqdq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Feb 2023 12:16:01 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31MACWue040932; Wed, 22 Feb 2023 12:16:00 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2174.outbound.protection.outlook.com [104.47.59.174]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ntn46fvtd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Feb 2023 12:16:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ARVBZ/EGDBprLXVlOXTvrfldIneIJq+OUxYTCW73+JCyJkXtoiTynFCuFOoVl65aw3clfb5Fvg81p6jUS+wEtALdjuQ4RbNzpJ4fL+cdMXfasF+DVkYhMHV7AAqNnOj8oUm11SPqk16uBKGoQvwOEISeiBVbKppgokAvQy2DHzZvsy9HUgVJWlM/vm2Pd8BFDP2s+UlojWF4dktngJ+lRvb+mH6Ke1B7OiM/G7bkfgWbxL6KbuG44iyQZkHWW3WzXZY8mM3kRsGRSk7i6gU5VYIB8rguPdn5cUuPl+qtlOgot70DThfJ4zZ2x+xQb8skhGKLMQoraxRsNM8MLGoZhQ== 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=N77FyshD7+elqGy+wtJI+TxNXB/cysj/7vXXeaV4hC4=; b=YfMGUwGkzRRqFRGnC3t9zsfIIWY8RfoeA3OzOml9l7qGroVquCRlYTDZuyz6jpzoja7DlMPWisQKvD3nib7bHQ03Vp/MkGyN2Ej4Nesx8ugMB1106aR/yFgomaj2f12/LHrP9oOViNDSHgymSMCv1F07gfTZ5H2snIjD12VbBA2eDsZvfwmIw+Tb653FA5BdfA0RHbGZvmIRPnRzXfQ383PsP7PbcQya8am0NFh4VenKCvd6fX4sYVPQvW/ANjQPdD6KkXz31c+C/8ARB2q+Ek30RLDt9W89ExHFibCnmA+UdBDZcs56Ck1iX6/5uh1R2EzAjBkNkKgFLcUUU7k3+Q== 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=N77FyshD7+elqGy+wtJI+TxNXB/cysj/7vXXeaV4hC4=; b=gEb2YzimAYGLUkDb9RDWr6kvLJgOhRiZh0JGAO1DymUUOKRn7DXk7xX6cnNQwWYjKEBDvLJF597c0XL1nm1v3zLZO+THeZEZbExXi4etHBdtWMXhT9W5ApUfTbKFi/AdUc5gb0ziP/aF50k32JVjfYbm4I7Sju98i2B48NHbjzw= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by PH8PR10MB6412.namprd10.prod.outlook.com (2603:10b6:510:1c7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.17; Wed, 22 Feb 2023 12:15:58 +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; Wed, 22 Feb 2023 12:15:58 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org Subject: [PATCH 12/27] kbuild, clk: remove MODULE_LICENSE in non-modules Date: Wed, 22 Feb 2023 12:14:38 +0000 Message-Id: <20230222121453.91915-13-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230222121453.91915-1-nick.alcock@oracle.com> References: <20230222121453.91915-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO2P265CA0059.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:60::23) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|PH8PR10MB6412:EE_ X-MS-Office365-Filtering-Correlation-Id: 377c9ae7-7d18-4f81-b79f-08db14ce8e1e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ynycHiwZbGYktgf8lAUJksYUlR8DIfw6XF7t6otpFgLunc0cMS8c9HuN41FI8fQ28XKxCGnQhc1o+he7wfMErmiei3GY/Ty6MoGrXztM2N+I80vjA2OSZ2Sa7YhWpFvrjDycnHznvqXFnqusm51VJhnQ+Sy6EkuSZc1awivOOeKlXYjwVq6QD8UWSJ62i4t9hcUGUUWm2C6s0gGQ57q5jU5I79PlsUc1FoZvYnuRU25KlvfVWRCwDfMu8b9HO24V658r2pnaGmoHM8hsUBWtNh85Nhg+MeHiOLIm0SKmPDq+hl+PXy8k2JZkhxfYc72GQt+FCFWYvhefPJMZKb64aLun+0m6e/W4bn+F5x3UsWHV3z9WH4G9LW0IMltDZgBF7uasYThRSmGmTnY2r/1tY50sii7+cMooKAFEPlcJrL2wQyVSooCfajJfLwNeRdmB76E2t3TD9kpG/n/yfgWqZBWd4Wj5edol0wfVVlZ3d6zQFS92KzlvnP/IAGHHp58ItM55AiQTufAVpXX4usDWEWUlEEDZW5gxozYu3R4kouShDEkUMBK/1CYZjzArpoKlNDQ/R9XQmsJ9JFk7T5Bmvi+bjihYL2+HYNrc/7qfM/7/+xB9u1xQV1FPl/5VSCeBc+26JQM9U1Kv+kH1/QDbUw== 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)(136003)(366004)(396003)(39860400002)(376002)(451199018)(478600001)(86362001)(54906003)(2616005)(6512007)(4326008)(316002)(6666004)(6486002)(1076003)(6506007)(186003)(44832011)(36756003)(5660300002)(8676002)(38100700002)(66556008)(66946007)(41300700001)(66476007)(8936002)(83380400001)(6916009)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: k2rCa4RFMYEWMCFlYgGgjmrTBZxsUdoB0KK9Pg845MhemDZ0GqM+WwTzdPvOSMYIfVbJ/EjgjDF3iuPkGo0SbT3ERDkqtwCrCe9bbAS6zVGj/Uwuws8gYgGSUOc7Fq70EjcXXilz3CZyYIaL9QuQ389vpupTrn3LF1Y0FatLDJbPRav8njiO3Ig5eSyOKIpwSMB53eqK1MPCNprub+T04499qEOdH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1/2WcIWMLr7kOh6NrSlm8d2/LtJmokhkT0sqSfZHnradO+mUHJH/cYbWvmdKmu8T5OBa8ipFj0lg7rI9UL4W05XSanJI6lYwaWfGFEFlgg9HCW4Sv7pN56C6FPad2rJr/pcmRjP5cZaQe5HADYIsZh0FggKq6vMoWQm9OFobEv5rE3THVkPWu+ujlrxd9SuPngjauykAV+xrDK9P+EM18W98kNY0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 377c9ae7-7d18-4f81-b79f-08db14ce8e1e X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2023 12:15:58.5297 (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: o9LAoT2hETHl+kiHujwGaFfPvtE3dTt2WktxdK65fawHxwtrLNej3hg+Y03flXmNRCmP1hSkGm1/eSoLB5sGIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6412 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-22_05,2023-02-22_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 adultscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302220108 X-Proofpoint-GUID: 4Hl2DRw4MBacxJZICm7l_Lk1QCSY4NNp X-Proofpoint-ORIG-GUID: 4Hl2DRw4MBacxJZICm7l_Lk1QCSY4NNp 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: Michael Turquette Cc: Stephen Boyd Cc: linux-clk@vger.kernel.org Reviewed-by: Conor Dooley Acked-by: Conor Dooley --- drivers/clk/clk-fixed-mmio.c | 1 - drivers/clk/clk-fsl-sai.c | 1 - drivers/clk/hisilicon/clk-hi3559a.c | 1 - drivers/clk/microchip/clk-mpfs-ccc.c | 1 - 4 files changed, 4 deletions(-) diff --git a/drivers/clk/clk-fixed-mmio.c b/drivers/clk/clk-fixed-mmio.c index 5225d17d6b3f..8609fca29cc4 100644 --- a/drivers/clk/clk-fixed-mmio.c +++ b/drivers/clk/clk-fixed-mmio.c @@ -99,4 +99,3 @@ module_platform_driver(of_fixed_mmio_clk_driver); MODULE_AUTHOR("Jan Kotas "); MODULE_DESCRIPTION("Memory Mapped IO Fixed clock driver"); -MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/clk-fsl-sai.c b/drivers/clk/clk-fsl-sai.c index 6238fcea0467..ee5baf993ff2 100644 --- a/drivers/clk/clk-fsl-sai.c +++ b/drivers/clk/clk-fsl-sai.c @@ -88,5 +88,4 @@ module_platform_driver(fsl_sai_clk_driver); MODULE_DESCRIPTION("Freescale SAI bitclock-as-a-clock driver"); MODULE_AUTHOR("Michael Walle "); -MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:fsl-sai-clk"); diff --git a/drivers/clk/hisilicon/clk-hi3559a.c b/drivers/clk/hisilicon/clk-hi3559a.c index 9ea1a80acbe8..8036bd8cbb0a 100644 --- a/drivers/clk/hisilicon/clk-hi3559a.c +++ b/drivers/clk/hisilicon/clk-hi3559a.c @@ -841,5 +841,4 @@ static void __exit hi3559av100_crg_exit(void) module_exit(hi3559av100_crg_exit); -MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("HiSilicon Hi3559AV100 CRG Driver"); diff --git a/drivers/clk/microchip/clk-mpfs-ccc.c b/drivers/clk/microchip/clk-mpfs-ccc.c index 32aae880a14f..6ee92c7925d7 100644 --- a/drivers/clk/microchip/clk-mpfs-ccc.c +++ b/drivers/clk/microchip/clk-mpfs-ccc.c @@ -293,4 +293,3 @@ module_exit(clk_ccc_exit); MODULE_DESCRIPTION("Microchip PolarFire SoC Clock Conditioning Circuitry Driver"); MODULE_AUTHOR("Conor Dooley "); -MODULE_LICENSE("GPL");