From patchwork Fri Feb 17 14:10:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13144835 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 9E02CC678D5 for ; Fri, 17 Feb 2023 14:52:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229908AbjBQOw5 (ORCPT ); Fri, 17 Feb 2023 09:52:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbjBQOwy (ORCPT ); Fri, 17 Feb 2023 09:52:54 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67F166E674; Fri, 17 Feb 2023 06:52:39 -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 31H7hppX001445; Fri, 17 Feb 2023 14:12:05 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=RZ3+H+fZHEUXqkEwroqaZl51WLH83Jjvfci+DXKIcy0=; b=Dcmv+Y8Lpf6LrsR3e6RYGDE38MBCNK1Za37ddVYVQcP4gU9UWoTc56ZZCBkodVKrsAhW ZSuXuYqBNu0KkHDo1+scBZLSGfQqBI35QDS3IZdJgOYtNR91R0Ustg3C8iJecLq5WtGn OjwmB8/pNeLM4ZsigOuDc4TZNFhYkB0ZsrV4Z0P6yqMze24gc6Wr2jqGFxrYL3sNpclt X1ln+cG1LBBeYUeHAQZjQ5yHhr9yQzzmdIvoGqxhE9NpkEUiMe1LZMOzVPxgXtkMyAdz LQHP0KVUIlBm8U3UfYZvNZd3kUl19XUnTHvn3kO/8YvOFSv2QUnurZg4ojFi45P8XtQm 5w== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3np1ednuhu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Feb 2023 14:12:05 +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 31HCNNvF022784; Fri, 17 Feb 2023 14:12:04 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2174.outbound.protection.outlook.com [104.47.56.174]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3np1fa58bj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Feb 2023 14:12:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sdkd77WGyKmEDRx3Zhw9dZYa4kFA/snPak6P/sGyD30DINP7Vulrn9H753n+hOWn8Tt+v8TMwAL0regs6wWVDkx271vgB5wuxAobrGxYx5imVilP0jptr8SjES/LXY4M24pws4vpQhDWeNeu+MRaRJLPP8mDCv1sBXnJ/orFbp22zZoJGq+wV6VCAs06/lwPZ3fePMiSozz71UM0g384xm+CHO1+SMsBixZnxlbFrMrhcMqF4QxMOcfFD2rCktsolmffQEUro1mnGliQxi9dONZ0vrfGas9ZCoIllPp0GL3jkOi3aPzfxWhhkJim4rzZHq+76dN3rC5wUp8Mp/lvrw== 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=RZ3+H+fZHEUXqkEwroqaZl51WLH83Jjvfci+DXKIcy0=; b=oawjz//JOdoZiTjdpAA+8NI9OI2wf3NViEA51T6DuQV3vP29GdVV+XXfJgBUrrl8nsWZXvJps2bZ8qrn++I+9OhgYbgGGSax6YZpmvNYoAc9UOMvCYEH4VTH7LwHmKdT8sctT4M8FKsTTjjEN56DRB5e8kNs+Bp9+3CzOOh4NfXFCs2xFOUFoZYlFBhfoL9R1sC9Y1jIVCbp+hds6yPReKChabyB0NEdie63v0YHhtauC2NWcLmRNaGvGvCFpTzji+mu5wRaOEw+KMktgo5VghlWKknfOdbQcWUnmkGU6n7c7xHB2JUFEXw9pyBxPkJOfM7N3SY4JB+Er8+IE+XeDQ== 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=RZ3+H+fZHEUXqkEwroqaZl51WLH83Jjvfci+DXKIcy0=; b=bH6fR99jVh7rK4uVBtpx9jqSHNTtxKUM4Qalfo7AIvrdFJDZbTgBVHBWPvI2/Gs90gCTkWWxcM69gRlDbaFj8n/YZrnOZHejsGYTbIfk91oNtF5HLSppFNb6ZRsXtqUaZKobVJcN/GrG+XLePcBkUzmxtJSNvrwR4h6sDwumA8I= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by SA2PR10MB4795.namprd10.prod.outlook.com (2603:10b6:806:11d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.12; Fri, 17 Feb 2023 14:12:02 +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:12:02 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , Hector Martin , Sven Peter , Philipp Zabel , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH 11/24] kbuild, soc: apple: apple-pmgr-pwrstate: remove MODULE_LICENSE in non-modules Date: Fri, 17 Feb 2023 14:10:46 +0000 Message-Id: <20230217141059.392471-12-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: LO2P265CA0413.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a0::17) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|SA2PR10MB4795:EE_ X-MS-Office365-Filtering-Correlation-Id: 89e80314-2128-4c48-a6ab-08db10f0f0b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l3bAZ12leO15zrTtciR8e2gRIb57IPFs+Lv8CuscRluyCb7n0Oqjtw3UdEJPBnYyn1YXFLk1cas5KDoAsZcvvprbtUHvc/gBzYB9wz37ldGV1+UzneIqWhpvfNKrJJVbRGrfC8JsvscM5q1a/ZWTW8Zp9kjax7Dc/NmaIaC4QGqEpnnAbTUEMdAH/U15DiOrexZ821twiOnO8bfxboEBA5bNDtu9wfGsGwhWOVIUjfMMkB2pUTD6ix/zSxXv7AIMp0ldIhXsSH0E4ONoYWu9Fl2p8yquelLhxQ8cBX8Dprkk+XV+P7aoI1W/MWdrPdjJh/9qBYqgt7YSTva60BR0J+bl13OoHsrXvl6Smhy+g7ZuSZaG9KBWEkUqNs/Ki8v01aMRc4sjjg5l/L2K/4n+fwwN7OOHa8IuybY+c/O+jLJeRMuGxeSiEBWSSOs34PN8ZfsSoiVcBWZ0NHWtp4HXSFaCWo4hXNyQ5Uv81C12UgdllrVAE4ugouxTPbpmKJUIEF1OraIP+Wyn1t26ZgAQU2UUWnwavfIs/dx/3CgnPu0Ju1sbHQZ4VrYL/BQSIe9DQZc7mDpID2n4UgTNzgxRzcEBSaBl944/qS8Kcgjf9acRSEiKcRZLu/Yewoflr+7NcE4iQ5Z3yLu/OHn5IhNETHuISa7OynaCE9hH+Clu/Do4OL2548r96s7Rbzh3gNFGklHyl8wzT9LCdepWB+TqdA== 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)(136003)(396003)(346002)(376002)(39860400002)(366004)(47660400002)(451199018)(2906002)(44832011)(5660300002)(36756003)(8936002)(86362001)(41300700001)(4326008)(6916009)(8676002)(66476007)(66556008)(66946007)(54906003)(316002)(38100700002)(83380400001)(2616005)(6512007)(186003)(6506007)(1076003)(6666004)(6486002)(478600001)(46800400005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9FaqCS3ETvfIR/XZg2YDZzsLU9Ktd91b85qu1NLQUFL+JS/alO71ab7GEINdg/O4igpWD/Z+oNi/J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qt0WSh43uk1P22xaF3mHV+VDtbagepUvqol6SWsnFvS2QF256yBnNf9srnb0x3bfuyME/bpaszhF+1mfojynO/1F8FYswUQNjuOCiDK+qO1x5MtevAoHAXpvWPqqSCDARAkoMh6I5/bsOb52HAgCxqFKrjIMQclNo8fvRNpm1MrXiynG0J9L1hDgaasJWsVM5gEUUCipMNn62afHWkauscEAULXzTXdnmY5uY0ao47sPvE8kz42NbDnVNP1EMvXHf3p0GNWviCP2IeTMXhfYaWajR41TRTAHjvrqwnS9zaheidoRPnHBNcMlfwjopODxOE2rcMF9ob01C3abyJ8fus9PYQDnePBoUJEWM2GwU2vM+jengHzUOssQQj0R+mZaq76HqPSh1/eMitvQ5aLgXh0mbW1AdctwQm/CZuc0LlaWZbKfOa5DfbGPmzL+ZnN1OQYBOymvOS84ffbqFRwtF5rVIkh/fGSb7U//zZi9mVaE/IeB3snJW/RbWWrqaeCxh5dycgXE2kGjwBBXIQA/iPcsYyac/UA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89e80314-2128-4c48-a6ab-08db10f0f0b5 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:12:02.1095 (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: NhbwluDRm1zAf8qektT94CrGlApvzVuVPjoQEEjrmzqVES8b5PTCaMezTGn6F0Ql6aJYOs04rQSkhEeUbwcNKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4795 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 suspectscore=0 adultscore=0 mlxscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302170128 X-Proofpoint-GUID: QIdI0ACLoBbwV2ELYkrwmX_ldks_41lI X-Proofpoint-ORIG-GUID: QIdI0ACLoBbwV2ELYkrwmX_ldks_41lI 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: Hector Martin Cc: Sven Peter Cc: Philipp Zabel Cc: asahi@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org Acked-by: Sven Peter Reviewed-by: Eric Curtin --- drivers/soc/apple/apple-pmgr-pwrstate.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/soc/apple/apple-pmgr-pwrstate.c b/drivers/soc/apple/apple-pmgr-pwrstate.c index e1122288409a..2c15474c7b53 100644 --- a/drivers/soc/apple/apple-pmgr-pwrstate.c +++ b/drivers/soc/apple/apple-pmgr-pwrstate.c @@ -319,6 +319,5 @@ static struct platform_driver apple_pmgr_ps_driver = { MODULE_AUTHOR("Hector Martin "); MODULE_DESCRIPTION("PMGR power state driver for Apple SoCs"); -MODULE_LICENSE("GPL v2"); module_platform_driver(apple_pmgr_ps_driver);