From patchwork Tue Feb 28 13:02:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 657653 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 3CD87C7EE2E for ; Tue, 28 Feb 2023 13:03:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbjB1NDj (ORCPT ); Tue, 28 Feb 2023 08:03:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbjB1NDe (ORCPT ); Tue, 28 Feb 2023 08:03:34 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82ED42279B; Tue, 28 Feb 2023 05:03:05 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31S5umWN016799; Tue, 28 Feb 2023 13:02:58 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=ww9cW+67AsPP5+4h8UJ+Jr5vdo8JMB+oUDwzUIVN/SQ=; b=PjKKxFtSCk/LBEONaL+U2btjF3KnSI+8t/UFtFSkp/MVXpyu/447MGPmhzR9q+jX+GyY 3nWMA8WPyfOEEhy44nufCmh4BW//2jeVi0TR+oAC/ETzu0co/YecDHIUqXT1lDvMktD/ O+ll+a50tN0uXPut6xQWs7T/v6Lwjo25yEOLQpJAx71zqcxAdQ0VUEd4+Q67TGaJqnw0 lc7RX9bA5jQycl76AnwG97aaaMKlSu7jx6fD67FYiZ9l3YcGg7Vpr9KJ0QSJtm4vakFN 9hXlZPWZ17TByGT+oRG2jnB8tHZgsDWAJX8AasOH16WZWki6+3WJE8vfbw1xKKxZP5kS aA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nybakp6c5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Feb 2023 13:02:58 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31SBSmsB015883; Tue, 28 Feb 2023 13:02:58 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ny8s71n3y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Feb 2023 13:02:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DIr9UmFUYYJ5DAI1ahGAhEmRlzphZ1Tq/9MbQK/6CIbPDs9I00BtVGURBRliHu6zZXiteSVu/2b+Q8762TVwedS5M/dmJ1NKCe0sYztGjgjLG49At2lanBOM9rvNQvmjqTeGiJKXzs/9Dvasdz0Rc0aSzaOEO4kSnZito/saej5eLHNLwCapT/hUfi8ymPunEQPnO1Cs2eFcjwl1v/i7lbeYnVphfXdj/PoPMu1TlJ4vzjMMR9iVSO394+3kL0toBjtN2iAVf1nD5QwSvR+vkHEEUhza+WFTd/Hzrny46nQ+lMxZoHcR84Z3cwMTvD8Af4COMMtDqxSB4GWAk3nFcg== 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=ww9cW+67AsPP5+4h8UJ+Jr5vdo8JMB+oUDwzUIVN/SQ=; b=CO8rQF09BiICha4dYVDH2j78hlLqLWLhdxHIeVCnVQHOLqTjcl2T4Gln/LBstXnklG2gso+qVJGUDTLhr6lQ5dHp9ZC6vkkifIOqjm2jdnxgwLwxzweTupsAd3SJXV9Zr9yog+nCB0/S+qTU1ccSj30px7ll8Z/wHfdYaJNXC0Utv+pq+zzCIeocNh/ws0zC9yt9YmbtjFU+HdVdBIfRu8eyKUbTB7RkW9bxCayzPDzX6FD3Y2Q+1HfLceTYsgi2lVQZ6XLc9AMnUkLee4vr2VHQIwQA8ETfWUcBqeNV0u1kFeIcL8Q/B9ScXx6nrFkq8MGrfC/37mWgFNQsf0jiZQ== 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=ww9cW+67AsPP5+4h8UJ+Jr5vdo8JMB+oUDwzUIVN/SQ=; b=XjFcuyb49spVOCJ7SJtrfQ7pvwwYHwvAUjijHzroliBcqVIyHb6wzazPcUJU7J98I+QXjooTUm+GoG61JiH7glgLmotWTDhw5DFsMUwny6+whLYOc/RSk4jHrJWvTiXzaawom1h/dXJMg48vy0jWxMW9pwk154Rb0OVU7lDPUUI= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by CY8PR10MB7290.namprd10.prod.outlook.com (2603:10b6:930:7b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.16; Tue, 28 Feb 2023 13:02:56 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::d0f7:e4fd:bd4:b760]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::d0f7:e4fd:bd4:b760%4]) with mapi id 15.20.6156.017; Tue, 28 Feb 2023 13:02:56 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , Sebastian Reichel , linux-pm@vger.kernel.org Subject: [PATCH 07/20] power: supply: remove MODULE_LICENSE in non-modules Date: Tue, 28 Feb 2023 13:02:02 +0000 Message-Id: <20230228130215.289081-8-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230228130215.289081-1-nick.alcock@oracle.com> References: <20230228130215.289081-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO4P123CA0109.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:192::6) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|CY8PR10MB7290:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e6be0a6-058b-4202-16e9-08db198c1c1a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6Lir1b3f2eHIQCsWlwFhSCk87MZojEu772nYoAZqvt/MU07/8Wy8zAh+KGli9HLsqfXyA0w4IuiBG/UP3hZ/R/piVJ3UjBKfU/mN0b+HC9lkfVqvVY3+BcI71gl7JWWuB6KQX4sWIsuG+VJr4pVqo1GSVYzRiYNvk8uE5dRASfBM4nqxUusmj4u3vygQOFVSJVnDpgjKjf92RJlQ5ift2qW3xb652ksSJ44qDd/N2CTE0qsH+fy3s2y0rZa3l6gKuuv9ThQUr/LiLeB3dMA+QGjh5A2RDD3HrKSxeFFXSwDRk9v+Xq3U3aIu1HmcyQEmeAa9L1rpWRJDXMcwg+JlAqWoTBJ+HSYFA64OVp+ONrlFgNQ8JSA2ZwRzBlecRs5xv1rVH6cXpe1Qbb2WHZmkHfCuATigrOu/3O8JR9Wde+ve8aa7rJqHWjacBEnSTx0U4SJqyy0FrzU23a+Z5kdhK6iKD3Mz28N5Kdze+UK0HsWjOVm8V8dkDKxpH943oLdzZq99LUQXLPJPy8nc7PXeEu2qSGOculTUMwmL1Z9y8HchFgeKrMgMYrbJ5UttvWF7wZBOXHmKMLveKry29ipCc/qAqY8b136DkLYVEdLEsDQU8z86D4GjZTqp2hTw/AESh8lH1f3Ldxbp8sfC/RoySjpMa4FQFA/cmCaQkHUCv9oO7JurlE5Yw+QK+rfPQzYan+3bUBB+JQL3q1n+7UkMaw== 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)(366004)(39860400002)(396003)(136003)(376002)(451199018)(36756003)(44832011)(5660300002)(83380400001)(478600001)(6666004)(6486002)(2616005)(6512007)(6506007)(1076003)(186003)(4326008)(6916009)(8676002)(66476007)(66556008)(66946007)(41300700001)(86362001)(8936002)(54906003)(38100700002)(2906002)(316002)(241875001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: b7gL8AwRfNXRa8nlW8FTX9GY6CabV2hxARcI54LuMu36tiZIE2m2/IYiBByahjcpURP8rLvLPRPKcWTJ3okLYCxcp2cieOIaRvU1swxorcTW3aY71gNblF0dOWWbLL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qUICy+vlG34sVrKQfM0EKCCY1lQx5/AHpSSMH771+dnhXISPCwSHx7yvOIQS85Q/mrBOugL5eenWbQkTllCHmyN3SgxtRYyKOhs5XsDptHpHkjREHv3aIUkd9pNCPmqTiDZrBlJGsOBUdKXc5FnKtAj5Xo4YgadPciDbWfuom8OONzuzMWBdu8Mh9jU/UaKRsJMC3utoPbJVHlySrrP4d0Sh6eusFxTn+IB1mgnudKLAkDSsiUdDTZAnupqcIplPldw/NsVSlDNTAnKWQULel2bA/HUUUH8VaTciiGHXwTNXPP80LPeKNPs6raEh2RzfXaC8RrZ9ZSbV98FQBX+QWutny36rBpK5uPfz0vJFigDMaPP+Lh9VLB1ZSx5o3MzpQF14osnk2gwrFxxXAHD/CFR7/GrUeG2j9svjQU9XGKeTypNJKcBg2TEg0EqRopglUu2mQQAQRdiY= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ipYjIFEp3MKw2ZllMPb+igPCUKzEQIJEm9qV/8JAUFEXbQNk05+AeQJszaBg3HRJKR91THl1xpwcPsgBfCfVGW0AqSLhxcR7FzzqVRKLyIIXqRH0MbVjlT0OhvJv1kLS3O+Wz1FLSO9IWdEmG33dGDovhei1glPbdjUiB6MMlN+59qNsoMVw3ADPLccGpPq9V2672gxqOcTxNB+fpW7fa1T3nrsJE4KIrLv/vju0/eOzbS/tFAvsDFAergVYYUNsvuyPBR/J8IlOcra4ZejYwDE0khR2Vi2qDP9O0bqaiurA+VyDkndkw2JbuZTxxyiiWMZiTxCE9x++ogihWxXBpmweI+LCi/iYKrza68m9qTuk/ZjMc7GlVVUtocUzoxbZ33w1GeDp+L8yLW0DCSaEYVK5D+gScrf643LQYGnV3ybZu57NL4QZUecZH7GfKvzohexxjzfVClq6Yk9lw24ObrUKA3QRx08yuzEzbWvmS2yZdvn9KAbJwQSBoO9KW3U2F1yv6QKO+hUq0H7uuNcW1CElVFDeEawveUMCHDLPzJgps57J6a4K9gkruL/eYrJFZ+JfikEEvKA9TS0vf5YA7oR3deUs5dGr7vTVbyJV+3H88cPsF+xfh3SJi+M3I62oDiGNMwBsBmLMB19fc8FDVIZlkV6sRtkFldb6rN44RF3xKwwantROSL3C8u+W1S9Ygr67/ZSflR5JYzhWrUVsdQGhUfgnZ7H+Unt8F6EZpTTfDwmjmd6+V2QqAVUUZj3znVd4b9k6TmXJt3bNdZl8RLotiVcfL0pLOwrP7bpYWxPDxNHcHCnq5nZkmVxVXW8L X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e6be0a6-058b-4202-16e9-08db198c1c1a X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2023 13:02:56.2207 (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: 3I4+OmwRT1CRlTkFWqoXYRFvIhdyX4XWXe1XJqczLTnqCjSRkYovPHNTlQbZxFKSihMDad8fsgxgemSNtjO+xA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB7290 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-02-28_09,2023-02-28_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 phishscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302280105 X-Proofpoint-GUID: Lftj-l6HYfSjb86z2vln-4g1PK3cjbUe X-Proofpoint-ORIG-GUID: Lftj-l6HYfSjb86z2vln-4g1PK3cjbUe Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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: Sebastian Reichel Cc: linux-pm@vger.kernel.org --- drivers/power/supply/power_supply_core.c | 1 - drivers/power/supply/wm97xx_battery.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index 7c790c41e2fe3..411fb8b8945a7 100644 --- a/drivers/power/supply/power_supply_core.c +++ b/drivers/power/supply/power_supply_core.c @@ -1578,4 +1578,3 @@ MODULE_DESCRIPTION("Universal power supply monitor class"); MODULE_AUTHOR("Ian Molton , " "Szabolcs Gyurko, " "Anton Vorontsov "); -MODULE_LICENSE("GPL"); diff --git a/drivers/power/supply/wm97xx_battery.c b/drivers/power/supply/wm97xx_battery.c index a0e1eaa25d93e..f4b190adb3359 100644 --- a/drivers/power/supply/wm97xx_battery.c +++ b/drivers/power/supply/wm97xx_battery.c @@ -271,6 +271,5 @@ static struct platform_driver wm97xx_bat_driver = { module_platform_driver(wm97xx_bat_driver); -MODULE_LICENSE("GPL"); MODULE_AUTHOR("Marek Vasut "); MODULE_DESCRIPTION("WM97xx battery driver"); From patchwork Tue Feb 28 13:02:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 657652 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 0A39EC64ED6 for ; Tue, 28 Feb 2023 13:06:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230173AbjB1NGl (ORCPT ); Tue, 28 Feb 2023 08:06:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231636AbjB1NGf (ORCPT ); Tue, 28 Feb 2023 08:06:35 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AA7A2FCD6; Tue, 28 Feb 2023 05:05:54 -0800 (PST) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31S60tcf010583; Tue, 28 Feb 2023 13:03:55 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-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=OQfA2bVrJa4ntLAwG1aOF891hUbYSLmzE2fwBNA8CNQ=; b=Bg5Bg+AUYR/fpka/y7271xKYLDx3qJlbeftOLfwGH1Qoo33sb8nTf+n507/udehs1Hys aXJTne6iGirmPeVj1F5PYod0Ba8qklX/QzOAMKZyP8mrjC0k1UcEjA7+FuJ4TKvLO7QF S25fyUVDGUcs7oGqTKEo9CfZk7ZH/jUswfMcYVH8a8YnLmgjGhvfIcRChQ+0GqehW8hP IvG/IDr0pGLwFT4+JgW2+zHJzQX5eZm+tbjRtArCf16Kh9YrTC5nQbQXtTO6KYxdrqsS J3Hkza+lgOtRgDjxLAwhvAySH/QoB9FVpts8eBvZTotkOP/175B6OgFiCqOnDNBWBy8u ig== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nyb6ee62e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Feb 2023 13:03:54 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31SBHvEW031632; Tue, 28 Feb 2023 13:03:54 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2045.outbound.protection.outlook.com [104.47.74.45]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ny8sdh8ed-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Feb 2023 13:03:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T6d7MsHwOsR+ZvDeKAIeG9Bcm78qrdBPnc8GkFib6iy3V7MYxTROx7iAOlYt8wJmb3CDVwc67xIiazBJqiB/SQaz2981GxUjK0M3bWoO8EpeQ4NYnIfPAicof56gJ9uw6BxAECZb1udcHUK2s5g41HIuQfhEtweXEHb44xFdoqV2afPeQEdYlg917ulAUi8drf4VH/J/gtdgqX/4EvA6WjT5irzjUN39pDRxt1Pn8m3XpWprJJ1WArGO3QsZ8qfEHcyo0ESqktk2dtX80Ya3uDO+VADlLFAIjAxZgGQZemG+n4/lRRsloGeVZin/+TOt9qpeTXMNdA6RJP2dPm0lYw== 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=OQfA2bVrJa4ntLAwG1aOF891hUbYSLmzE2fwBNA8CNQ=; b=Z4GEkGsCh8THi4o7AHvm9M4UfHh6QscG4IsMaiG7fhi+Zn5bAzxwSCg8qjz0EoUWKD1jvmWpWbTA5f8I/KxX0QC16+vJLiMgtkW5o3hh5YvVdtQzNJ4AzswyzgCzP5DJSEdedHg7sgZokpdctKi5VbuBbdbXwEDa0qVpJU0mf8sHaYwfHvWDfWGS19E8J//pCviEXlBDPeX4VNBTKKVaNvk/Ea98waivKJ8j1onMHqmUUbxwjUX0BlYp/HK8PXBSL2DRblX3LtP3ywmbI0V/haL2v59CqBLL9V79Vc6UxaJQxOalN7pYlKVh+/9vOBShQvxmF7OX70JyHccQ4nBYIQ== 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=OQfA2bVrJa4ntLAwG1aOF891hUbYSLmzE2fwBNA8CNQ=; b=IWLch45HE/HKWMe1UTV/x/XrbyrTpWCCLh1ku5yGTkjK4+i5b52lZwrMdOoK6UMrGLp/mp6iC/e2M/vKljs4XOfIm7GXJLRAimFuK0UraboG5lPr8Y7nN9Gs/ERFYAWICzb49G4RTBrF5s7Cx/s+tSg3f7UhW6dmhJIZV6jlwWs= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by SA2PR10MB4763.namprd10.prod.outlook.com (2603:10b6:806:117::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.17; Tue, 28 Feb 2023 13:03:51 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::d0f7:e4fd:bd4:b760]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::d0f7:e4fd:bd4:b760%4]) with mapi id 15.20.6156.017; Tue, 28 Feb 2023 13:03:51 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , Sebastian Reichel , linux-pm@vger.kernel.org Subject: [PATCH 19/20] power: reset: remove MODULE_LICENSE in non-modules Date: Tue, 28 Feb 2023 13:02:14 +0000 Message-Id: <20230228130215.289081-20-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230228130215.289081-1-nick.alcock@oracle.com> References: <20230228130215.289081-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO4P265CA0149.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c7::13) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|SA2PR10MB4763:EE_ X-MS-Office365-Filtering-Correlation-Id: 73311f4b-c918-4d0a-5265-08db198c3d2f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gPqMXc7qnf7t6LlbUWOl9+ePt1W9yI/4pqKi15yp+DhonGOs/szSRW4bQdzSeIav3bYzaHNJmZeRUkDletcVGczkCKf+axkk+poC34mGYfYKIk/ZlWVV8kQGchHQp9/9DgoecZaHt0qnV+K7VbUnhGkacfnkYbjsuhYngcZUT8n1cb3M8WPkP2UuszCagENjauvN1o0V/hXyV02AU9DRfDvaMGhBcvRUjD1Oo0rg5xlX6TgNUsouq4FSxm1yWxVhrCxRqAmTWaLy19Ix4krjxfLJICyJkRw9CVHNC96IR/0FrR16dLnxz60O1/eWcY6k/+zaEEM732bqwjODSjguPzyKHVg8K2QPG8mDbMoYm1vEfKY4loNPCgkR/xhQxXFgRIQvDm2ge3jCYVuNZpXpiJX/ptsTxTKPFTGmJYzp+Jpz/YXH/pbuurre3VMxMmnAuMID8yho3srLhCHkzSJZmm5YQn90LQU8hmrBX9pS/MXOhIH3AM3GGUqe7xZFTVjgNH4QD+MyNq2jrno97f+DHx8JaOj5mijQWQ8iHaB4NVz56FfdghUHfeo2I8xLx/ezsO+7UTKJ57xYzGnqrNpIkkToDM8LVcKaZhvWDDwvnAJ0nxkE2lEfpZLpOwJ2DWSYEHCOYld/1ajD1q/JU/JtPQ== 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)(39860400002)(366004)(136003)(376002)(396003)(346002)(451199018)(66946007)(6506007)(66476007)(66556008)(6666004)(316002)(6512007)(1076003)(186003)(54906003)(2906002)(478600001)(86362001)(6486002)(36756003)(83380400001)(5660300002)(44832011)(41300700001)(8936002)(8676002)(66574015)(6916009)(4326008)(2616005)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?TOrD7D9TE1PuF3JVPVPBN6NOecEj?= =?utf-8?q?csbNZagPrnU7g1pPeeiIRLdGcHeRdHf+karwPBQp/ASCUrCaQ4UsIWuOsMHn3PpMf?= =?utf-8?q?ECC9D5Yw8t7UlxGMCbzmuN7QpKgdd5P4pRc3HKFltFSDeaJ6ARtt2UUwxZk2cys8I?= =?utf-8?q?WHHbOEDRo99rJ075IEWgTWVZw1RiRzIrkavanHHenRd0Cbm6sLKS3yu6j78DrlpDt?= =?utf-8?q?6cBDzN7XMqCMZ1+Io+t3DC3k1HK2AOeNvOdLTmD2bT3hqaS9e2XsJ65kcCX3NpA4g?= =?utf-8?q?mgDCW+g309Ouut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cAFHK9l1nerBfGCCDMqA+qvs9ib0XhWK1blTTx/kMGYDuuf3N0LGGvTqDjyz8/MbHtdus3NYZsvQV0pIqkCYhvinXLqPQz71XD2qOEsTKNnGYSehHS0zSJ4q6Ys28roa+I34zv7Rw7MFqCCPei1AjfLFBehJko3Cm6DOglokhfCF60LoLY6djtebFOYtvyy6P4PdAygpeZzUIk5tVGRRLssmvW/MfMI9ppGfv5INCqieowsGh9fgErujnsUvyH8ZpcucPl6qCGwhvmVCxN1rzgHV0L2LBQ1c3Rg5jbs4Tmt+QW3VOdryLIrXUuQzIIViLdjTXIu+P4nigbk7 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73311f4b-c918-4d0a-5265-08db198c3d2f X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2023 13:03:51.8043 (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: 4Jg7rm3LVhgsE5EY3ONWKfoLFP9/zQLuZugCl9FwGbAXxRu23yIvxTi+zgRrNBfqWB66w8Bn1f20soD0y98BFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4763 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-02-28_09,2023-02-28_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302280106 X-Proofpoint-ORIG-GUID: sIoPIZguO5WyqlwxORYEAbgTgWG4CTPI X-Proofpoint-GUID: sIoPIZguO5WyqlwxORYEAbgTgWG4CTPI Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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: Sebastian Reichel Cc: linux-pm@vger.kernel.org --- drivers/power/reset/as3722-poweroff.c | 1 - drivers/power/reset/gpio-poweroff.c | 1 - drivers/power/reset/gpio-restart.c | 1 - drivers/power/reset/ltc2952-poweroff.c | 1 - drivers/power/reset/regulator-poweroff.c | 1 - drivers/power/reset/restart-poweroff.c | 1 - drivers/power/reset/tps65086-restart.c | 1 - 7 files changed, 7 deletions(-) diff --git a/drivers/power/reset/as3722-poweroff.c b/drivers/power/reset/as3722-poweroff.c index 661e1c67f82ee..80edff1a556f8 100644 --- a/drivers/power/reset/as3722-poweroff.c +++ b/drivers/power/reset/as3722-poweroff.c @@ -84,4 +84,3 @@ module_platform_driver(as3722_poweroff_driver); MODULE_DESCRIPTION("Power off driver for ams AS3722 PMIC Device"); MODULE_ALIAS("platform:as3722-power-off"); MODULE_AUTHOR("Laxman Dewangan "); -MODULE_LICENSE("GPL v2"); diff --git a/drivers/power/reset/gpio-poweroff.c b/drivers/power/reset/gpio-poweroff.c index 1c5af2fef1423..84b3c3528afa1 100644 --- a/drivers/power/reset/gpio-poweroff.c +++ b/drivers/power/reset/gpio-poweroff.c @@ -105,5 +105,4 @@ module_platform_driver(gpio_poweroff_driver); MODULE_AUTHOR("Jamie Lentin "); MODULE_DESCRIPTION("GPIO poweroff driver"); -MODULE_LICENSE("GPL v2"); MODULE_ALIAS("platform:poweroff-gpio"); diff --git a/drivers/power/reset/gpio-restart.c b/drivers/power/reset/gpio-restart.c index 5466eeea261cd..35d981d5e6c8f 100644 --- a/drivers/power/reset/gpio-restart.c +++ b/drivers/power/reset/gpio-restart.c @@ -139,4 +139,3 @@ module_platform_driver(gpio_restart_driver); MODULE_AUTHOR("David Riley "); MODULE_DESCRIPTION("GPIO restart driver"); -MODULE_LICENSE("GPL"); diff --git a/drivers/power/reset/ltc2952-poweroff.c b/drivers/power/reset/ltc2952-poweroff.c index 65d9528cc9899..eea05921a054b 100644 --- a/drivers/power/reset/ltc2952-poweroff.c +++ b/drivers/power/reset/ltc2952-poweroff.c @@ -317,4 +317,3 @@ module_platform_driver(ltc2952_poweroff_driver); MODULE_AUTHOR("René Moll "); MODULE_DESCRIPTION("LTC PowerPath power-off driver"); -MODULE_LICENSE("GPL v2"); diff --git a/drivers/power/reset/regulator-poweroff.c b/drivers/power/reset/regulator-poweroff.c index 20701203935f0..7f87fbb8b051e 100644 --- a/drivers/power/reset/regulator-poweroff.c +++ b/drivers/power/reset/regulator-poweroff.c @@ -79,5 +79,4 @@ module_platform_driver(regulator_poweroff_driver); MODULE_AUTHOR("Michael Klein "); MODULE_DESCRIPTION("Regulator poweroff driver"); -MODULE_LICENSE("GPL v2"); MODULE_ALIAS("platform:poweroff-regulator"); diff --git a/drivers/power/reset/restart-poweroff.c b/drivers/power/reset/restart-poweroff.c index 04d4228119b2c..28f1822db1626 100644 --- a/drivers/power/reset/restart-poweroff.c +++ b/drivers/power/reset/restart-poweroff.c @@ -59,5 +59,4 @@ module_platform_driver(restart_poweroff_driver); MODULE_AUTHOR("Andrew Lunn "); MODULE_DESCRIPTION("TPS65086 restart driver"); -MODULE_LICENSE("GPL v2");