From patchwork Fri Feb 10 16:47:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13136030 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 74F6DC636CD for ; Fri, 10 Feb 2023 17:06:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232959AbjBJRGA (ORCPT ); Fri, 10 Feb 2023 12:06:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232952AbjBJRF7 (ORCPT ); Fri, 10 Feb 2023 12:05:59 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E80A70720; Fri, 10 Feb 2023 09:05:57 -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 31AFNAju026460; Fri, 10 Feb 2023 17:05:50 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=SfF/+JvXJIe7TrW5O5CGwkn5lgBdh2A7oaweIHS6nP4=; b=N9ZDsNZL2jv2tOuGhcoPilYWmI9QQfeGuoPZqKT+ZorUP1Jts4GeX+uwxLdm+Gkainfn X1RUIVxwW8mcY4DPwdiP23Hls6z5w5c3iYLeGmSwSSUdU6RZbJgCntsqyKf4vWkOOrCQ D9F7lL/a769eyg/By56CHqF4AQz5t/hUauvjyuqnuEWwb0KOLIRXBqv81XVUa/qZSh/B w/C9EWJWw0/oJ74oovm+SsynUgrnMoW9S7BkNQNdkCSnAXgqFXqIjnEKNPtXjc8DaH+m SaZtKRav9EE8RGsBrk9ZrCNDVqro4zpdzPE5mBLtbyMeDN0IKeOLcKyi7mdgJg3DIXt6 Gw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhe9nnrfc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:05:50 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AG6tQF013782; Fri, 10 Feb 2023 17:05:49 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2170.outbound.protection.outlook.com [104.47.59.170]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtagat8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:05:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oJFbcqvVYpQ19fXeWT0wSYgRmPSMGvosr4U0497v/OSzXVc4dYDVwgdviJzRd3JdqOI85bPHcbNW94C7IB62MISz35QLv2xJ7l1dgTJPEOc8LFyRcfAnvf7pdOml3Y4vXVTfXMMCumFpAwwqTDrOzFwZ2W51OoM3Mxl+sduyCo+F3qelEiVWDTLDfnskSjIGra/IhVL3be0jDqraJWVOhIhyZC+rhwhJLyJwOrq+7SiPKVBtTEqYzfoERbaUEQ1Mn589/z8PypBgbdJ2/leFP0AeBI9rr1eRoO3daloEmu4LqkHIjeL4wYQeyFgwWV5NDat5ErA5yYXJjzqLasPR2A== 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=SfF/+JvXJIe7TrW5O5CGwkn5lgBdh2A7oaweIHS6nP4=; b=g4uAuc9/A28caLg59Y+bJZr2+Qi04/vtCiNhQS1Qfw4a9R+Hbd5mYGRoSSNPcq+MuNuIyGCOKwfcbRvxBXT0ROAyPMadKYp7Rj2QMCNHgIYylP0atr3Xv4SRpH+bm1MgNjODDJcVEWKj0BbrXtJUPEKQi+eOeCrMNRVXWKZaeToJT8oLjFHuI9Z7c/CpJnWU3/NCQn/ftGxsI/PTQrIlb1+4ZwYHd1D+rrwPw1Tpt2IXUr58UHF3JB3qWg0n+XOYY/zI0OMDAbzHrZyRsZfEOtyOJ5PRL8oQPFOjJhwyZF57QZtKeA2CeDtrdKqB6/N+AhYoMm7tO/pry/6rrBJ+Lw== 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=SfF/+JvXJIe7TrW5O5CGwkn5lgBdh2A7oaweIHS6nP4=; b=k6c0j+fYixWKDgWpo/FuuoGMxMGQiYoaOpxnXUnO5h5ChyQdeuvIX7/InHG/xnxsqDiH1+xn8bGduz3112/OsEi280fcX+yfVlzvhpcquQO4qLdVOf/xlbLIVjo47DmDtyIK/QL+Ph/OpSubihOnCCHTgtkF8ytaKwPaCf+nKQQ= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by MN2PR10MB4319.namprd10.prod.outlook.com (2603:10b6:208:1d0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.7; Fri, 10 Feb 2023 17:05:47 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d%5]) with mapi id 15.20.6086.019; Fri, 10 Feb 2023 17:05:47 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/8] kbuild, PCI: generic,versatile: comment out MODULE_LICENSE in non-modules Date: Fri, 10 Feb 2023 16:47:42 +0000 Message-Id: <20230210164749.368998-2-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230210164749.368998-1-nick.alcock@oracle.com> References: <20230210164749.368998-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO2P265CA0115.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:c::31) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|MN2PR10MB4319:EE_ X-MS-Office365-Filtering-Correlation-Id: 4225081b-b210-425b-6daf-08db0b890ddb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wLVbS+8+6YmlihDX+IuYDUUikbeeAMfHjkeOrLLaSD/QNBHW9kBJLFOVeCEu7wTSqjOhr8b+GrLxiRs8ZGRh5/aVCD2B+/IMmDh8/hs92nvC2jVJRiZL0Gq/Snf2G4Jb2jwluUaLhAzW4V8oLaxyxg9YnjJoEbscR2viXJ0QxYU3y6D0WveKjLbaMpDtaxQUqVMJx5LS4N6dGijSQm6d4BWC1AB2Htw7SASA7V9TycIs7rJaFIlhmy/KyWyomfamBo3fqlucOct8mYU62l6vx/ZR99UsBmITRl+hY1drhqYGRKd1L2853ZyNG/wVU30qvU1C2o16oSdbq3Ggtv+h7srSg7CvX0P2B4EqLw8leolRouRShB0E4iWcQrccs5ZjcpbvF5jxbXFlRr+VmePhpBE4QtPCjdNoZea+J6pCmDWC+OUDZ0MjQNSciezIOvsN4CQmBaxiA8hKaNcv/aWpc10uAgaU8ux3MhGj2O8d3oYNWE25ypJwwZ9oPmJbEEvkqZn+L8BHs+PF5eZ5klfoSRVet8lmWU11/Fgf9d4a8e5CBPzrFWA8KazmokBcVOpV7P1YUwJKyZpDjuKu/8mH5WSnIYG/X/1k+UQAQRMqXMUK9SfuaUM42bgYkuBLCFPHa0Sn6j75sNhBqaV/9dnML+RWsV9BGzGRxnebOV15tsl8Iz49YcHxRE5n6lkgUxHR 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)(376002)(396003)(346002)(366004)(39860400002)(451199018)(86362001)(36756003)(38100700002)(6666004)(41300700001)(8676002)(6916009)(6506007)(1076003)(66556008)(66946007)(66476007)(4326008)(478600001)(6486002)(316002)(2616005)(2906002)(83380400001)(186003)(6512007)(8936002)(26005)(5660300002)(44832011)(41533002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZlUj1oanRp59eOP28B3e66iBZ/eijIZGyrpuktkszYTy2K2ro1K8W58B1g2dCTWNAPkX6S+epNkbgTrMSYvzM8ha57Bo/AYhtO3bSB6qjWiHHGaPbz3OLavqOsfoAHVVl407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omYkQhF3KKR+XadtFD8Vpx/4O+kxfIcWOVFvwfzta5Ux3s3dMeTA9KEuXCtLKl6QOMuvz40DF53ZBogKPoQ1dFJNYMT+kpBdRvdGbfHenehL3TKFp+0vJQyM6uVHnOj5YJs9vr7VJOUDfRVEeBE9kzGa3gLPpXo6q1ghtqzkUS0Zspu/j1+5XjMGWeTuHqcDpmL2Qxn5saaGcS9PWwKtL/Kpi4yXpWKNqYMw4c0luRwrLyGrUZ0PsOSZIuIxovhMxG/bQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4225081b-b210-425b-6daf-08db0b890ddb X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 17:05:47.5529 (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: a10FpE/rQTp2qIIyfJYY6bSDrYseUXX1LkMHpffjHo6i43A6bnoRoliwnFepPqR8cCfrLcu+dwlFvmW7ayrACA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4319 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-10_11,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100142 X-Proofpoint-ORIG-GUID: MiyQZ0wZSyFJHU08gkJKnBlxvv9rEQJx X-Proofpoint-GUID: MiyQZ0wZSyFJHU08gkJKnBlxvv9rEQJx 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 comment out all uses of MODULE_LICENSE that are not in real modules (the license declaration is left in as documentation). 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: Rob Herring Cc: linux-pci@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- drivers/pci/controller/pci-versatile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pci-versatile.c b/drivers/pci/controller/pci-versatile.c index 7991d334e0f1..afa9d4694501 100644 --- a/drivers/pci/controller/pci-versatile.c +++ b/drivers/pci/controller/pci-versatile.c @@ -169,4 +169,4 @@ static struct platform_driver versatile_pci_driver = { module_platform_driver(versatile_pci_driver); MODULE_DESCRIPTION("Versatile PCI driver"); -MODULE_LICENSE("GPL v2"); +/* MODULE_LICENSE("GPL v2"); */ From patchwork Fri Feb 10 16:47:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13136045 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 C38B7C05027 for ; Fri, 10 Feb 2023 17:14:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232340AbjBJROz (ORCPT ); Fri, 10 Feb 2023 12:14:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233041AbjBJROw (ORCPT ); Fri, 10 Feb 2023 12:14:52 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1DC24C26; Fri, 10 Feb 2023 09:14:51 -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 31AFMYGh001218; Fri, 10 Feb 2023 17:14:48 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=xJ8L40c/FaRuOjzAq9CYq1gcU5TUfxhuJ9anU5XKi+Y=; b=uBJLgVAMISqIx/8Y74Po+SSlI7/Y4RwaHmYO05yfMO+p06x4Ew8tPsRtilzZr5NlpKHO ITMEFSf1SK0PrjUcq3W5zO2wNVRPAZLA8EgehFk3kxjpQ80AqBcCfaQ5C3IV4hhmbTbe coWSpAqX9clkkGvnxIEPq3guC6SrmSDRCGURRk1jB9MeYH5j1zHavBkqOJjBp4PCsmvR 7hOAdbxB2sisxVk/K6MOpOvE12mxXsJWnanwQPpoBrQn4ZU/xeB4xcFxIrLnhJvDDjNJ kJ1wGNUs/zEkshxoxa3rhoph056m7cWoSZbrbYxwOHr6jUU7xUGERppn8sPEyzTmonBc TQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhdy1dw3e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:14:48 +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 31AFrUIn036259; Fri, 10 Feb 2023 17:14:47 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2103.outbound.protection.outlook.com [104.47.70.103]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtgudnr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:14:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OZubTc6oljXTk0fH3+yW2phQLQFsafBwtOQIL+C876+0hJWxe7CgJ3NgUKQRfQ2B7oakYa2kN0y6oF7oR0+FAuvV/yvg9wo9cuudKN5N0dtHqd+7gx2n0uYMtRrYSrg6ozsLvVCmZsKPBzbkBBa1eWcOOYzF3akoDzsi9LiDMNUqV7qlc30nK3WLewMLnrq4lJxzugq4GN4y7/WudRRl1XL5PSk+3QPaVJ/pBEImOINK62KfJESLL5r4hNeDhwcMmiK/PWAA3oUzJjCSM6w79lH+PVFVepllezCweT+jpHkjNV2ZIyrfVPgxr/vYtDeAgMQpCJjgZcROU1WOKqTM7Q== 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=xJ8L40c/FaRuOjzAq9CYq1gcU5TUfxhuJ9anU5XKi+Y=; b=Mg17uzjhjWBlohnt3qPqU+Jld2R5UmTjUXk6v8Tbw3HNvDppLiohzKPIeArP8+pACJx5iWRVzAQoQzXXgrnpIuQEx/dRFBZF/Pf2TInyQYuDDFiLC4sTwnUHY4e6HSh5lnygq3cLsdCsfK789QS0/iVBO7KkunRmaYwFWDrXJDgdh1/FIBPhyUwgCrKav+dQeVtj32l6Yyec8paUW1mJkGCiDCqAF+7v7rjsSsxrRmV7wmrvgvRR9eroP/0xxVmAwac/n9vX1byhkfmMDczFi9LCE5EsltvA2NKRT48eo2mSgA6dKT2Kce4x+yUMvOKub2XGDwPSQ9u3CRempzGAhg== 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=xJ8L40c/FaRuOjzAq9CYq1gcU5TUfxhuJ9anU5XKi+Y=; b=N7G+F9WRM01/4KMmPxNJ14TjwZQDSfuNXoN/jmNurX3vgGdRS0Y/rWpX1UFihK9IdXxO0kEu/stptwzq5wWJPVsmKCjI0bw4kAS6yJw5e3gZCeVkhrPhnH3E1hO5SH6p4nEBWfvvjnKAKKxnYG7OFFur/9GsgSo6LrZkFcqnbjA= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by SJ0PR10MB4750.namprd10.prod.outlook.com (2603:10b6:a03:2d5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.19; Fri, 10 Feb 2023 17:14:45 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d%5]) with mapi id 15.20.6086.019; Fri, 10 Feb 2023 17:14:45 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 2/8] kbuild, PCI: mobiveil: comment out MODULE_LICENSE in non-modules Date: Fri, 10 Feb 2023 16:47:43 +0000 Message-Id: <20230210164749.368998-3-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230210164749.368998-1-nick.alcock@oracle.com> References: <20230210164749.368998-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO4P265CA0236.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:315::15) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|SJ0PR10MB4750:EE_ X-MS-Office365-Filtering-Correlation-Id: eb25ac6b-7f99-4da0-e115-08db0b8a4e6e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p9GV1VZXtdhEC7gwjcy5nlShtOusikY5gLUsRuXwlmnMHMskdSMFVCQYhFjMkxRXcRj1NpByNaliY6zCuzudy0/MXGM2Ss5hOZTvQ9qZjNQ7znQSbDRDGbWhQI5zWFr3vs5vnkXiwvBC0wlcER8JLOFYnXKEFv93aTRTmZtAe4cbJyas9Fbph43kUrsw2aVRP3W5lK5S+Qf2ES22NV4riMLxgHOiiHQCM+kAPiigobuVCafRnRGQ3QtkQDaE5PRjOzjuHWp5uwEOUk0kjRtGQlPv6KJbeMRjQaNCC2QVshYDkYA0IcJyIk7rL99IP3Ses6MyxZeVX9ZHZppEU5kPhAoKSQxQoNZoX3Eb3fNd2xhWDkPPUDhbraDlEz25aa3w/SAZMoYPccVoqNjxSzSRYysYvb3hUXQhqm6TVvlgS+g9j0YNqLKZXHzxwX9dNufkYRcKJiIcgivlgk4aXRMIQFW6ptpI2c+cgn6LrajzzCZEb529z89uRM5w0R/kv7+7zfBLoVF5nUj0JsTHiqtgxy8ZiWd5baBzTQk87LjcfC5zu6ZSaj/gmCB8vsm9Dj0s+BJMxxJQQA+XTHUK0C+27GAjuiausx8ISeDG/pqrbiT0hvyR9qKIndpGkLzo8+bDcdgJV5Pqz1P7shYhnJQkug== 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)(39860400002)(366004)(396003)(346002)(376002)(451199018)(2906002)(36756003)(38100700002)(66476007)(66556008)(6916009)(66946007)(4326008)(8676002)(41300700001)(316002)(83380400001)(44832011)(8936002)(5660300002)(6486002)(478600001)(1076003)(6506007)(186003)(2616005)(6512007)(26005)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nhSWxxNUPfqHvv8mHeO/dR3cDERUilhdD4ipnSQVsryT4llJdd0qH/XJtn+DND7v0Xsa2tU0rn8omN6iBsMjzSPrUeG9XzFJqz4q6xqV19xzRTvXtSA4VF1SkRkrJA7/9w5aekPi+tGJAS8Xdr0FiM1ualOVxi2LX6u6r+tmTSLei2Cxqycb54XBIXwOUItYNEW7GLiam6SQVPL712CUpeRWZUp50t5Md7U7aa46jlBGTUQatSmEiqp70F/ZqPTlx93Wox3PO65cuIvEhWc+mg3K3YrC0NosaEXzNhDj5sR6E/vHTLjDnfG8nTNhMFgnVd6VNUdIPRWO1RWdhb3r0l4KYmm25BV2MT1yxwsTeS0EyCY7lGW0NPE+FCfvegAJ6brUvvooEmGB28VWU2qpbVQZdYtyc5QehLO3zvrPNWw8Wzh2glHLYUplELEarZzSS0h7wGw6d8w4axifBwlIzA0YXwhlGX1g3+l2kgAn/n93HihHO9rcdkR0HAf6qTG5o/QzsIG9BbZomYkIbm9XztJr+Io0KkvIOWhFQA8xNYWHp9VnVr82ZUUA7vrd/uDsIjQZdYZvCSpFmpCI7yhFCQFByg6e74n1ne+6V9JNTKwUCR5ScsMnFOV4Ps6h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w336Al2KDrZg5cCiEQCF7oEpMu819VE3ImbOzUMkhByRa7HKrK4nKib8v3SRUBT6fOIsOmlcJsCP6AhR7jcd669vR5k/rpz+3bsVl/P+FenFYGjtkLEQGcRlZ7dqkGy50yXM0HcfTu5eW1/Xfs6MEotxqjG+S3UzLxN7tnPinwMoOydPnQzhrjdcq3oLcxf6TDRYIEsQHDiw+WgLrxEQWa3XoKvz78VrblVHoxf1uTSDFqRYNh4E7w2L9Imn+qr/aEsXfgIY0Vo6JLPeePPD6WGWZNOO+xhm6RiXX+7lduQGhzpK6EaX6FcjR6i5PLs5sgfJjnAlKXpFIuKyxUmqYWqIBP+HZ56NQ3SShiLQy9to5xoS3oh6kc88PNcdnSaYPheGbMum0PE+MyYkclkbAT9CbcIwygQtR48t91NfyiONVXa6g6/lz+lasPBEgER59lHKxMYwfCgMqwkGOcLmMbgKyu/Tz6xwCQ0IHDdQuAPFQ4NNWIb1m+k5FD+WvJOL5FDnmKlWmWZ06JilqjsrqyyCqWUbqodBLZ/dDOrErMo/OZ1gaGvdNUSfeUfIey7Uj52oqlBc7yTduCm3Tzja/rX0f1tGbjxAWWQNXxq16G67NBJIyABkRnZV5Giz4PciqbuW5TBLZTMoI57yx53lsCY8TQS5XH6yPXH5JVl+2VdjqgYhMChmlL4uTyUAHzTl61Bj9vjhgXJxY1GbhTJIRqWpcGQYfBdomvID8NTELcTlwRe/yBd4OBy1iI3asBBN1+4tip3S0SxMRCPxl9fCQU91qxBjh99//bWyU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: eb25ac6b-7f99-4da0-e115-08db0b8a4e6e X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 17:14:45.3589 (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: ooKi1BlpkKkRXWm2+pePftmZNf0A5XouUAPNsJLZe/VyO6e/dLsCYA/FYYkF44d3EG5ZGCTZWF4UxxNnWQmcDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4750 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-10_11,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 adultscore=0 malwarescore=0 mlxscore=0 phishscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100144 X-Proofpoint-GUID: P3QtUEdG5pTlXKlA21vTUX7XJAXpDDU3 X-Proofpoint-ORIG-GUID: P3QtUEdG5pTlXKlA21vTUX7XJAXpDDU3 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 comment out all uses of MODULE_LICENSE that are not in real modules (the license declaration is left in as documentation). 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: linux-pci@vger.kernel.org --- drivers/pci/controller/mobiveil/pcie-mobiveil-plat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/mobiveil/pcie-mobiveil-plat.c b/drivers/pci/controller/mobiveil/pcie-mobiveil-plat.c index f6fcd95c2bf5..d16e4f5c726e 100644 --- a/drivers/pci/controller/mobiveil/pcie-mobiveil-plat.c +++ b/drivers/pci/controller/mobiveil/pcie-mobiveil-plat.c @@ -56,6 +56,6 @@ static struct platform_driver mobiveil_pcie_driver = { builtin_platform_driver(mobiveil_pcie_driver); -MODULE_LICENSE("GPL v2"); +/* MODULE_LICENSE("GPL v2"); */ MODULE_DESCRIPTION("Mobiveil PCIe host controller driver"); MODULE_AUTHOR("Subrahmanya Lingappa "); From patchwork Fri Feb 10 16:47:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13136052 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 A4039C05027 for ; Fri, 10 Feb 2023 17:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232946AbjBJRcz (ORCPT ); Fri, 10 Feb 2023 12:32:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232400AbjBJRcx (ORCPT ); Fri, 10 Feb 2023 12:32:53 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A8E078D6C; Fri, 10 Feb 2023 09:32:51 -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 31AFO8pW031086; Fri, 10 Feb 2023 17:32:38 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=K0rtXJOevCeTy9zI9iNUy8835YavGLlPvGKFGX0sJdQ=; b=eCZ2PvJWuWoqhWTmaSE1WuC+xUJkjafgWj4iV4NDp9pKODTW5TftorGJpaFFlSWjlONh 3S0YNqPVEtrNdUv2X2p2FwQ4BfT3viyJEfI268TZ4z1fT3d/WKSbfJI7Nn34hKmKWx3O YImaWTg5kS48EAEaCdguT8b80nOGY4qbftX7gy/na5Zgz/iW240YyldV1RDSI50W/WrD WSQgnOUfXuCBk7lHTeKt0STo6mONKQfIXxOSQs20EOMIqthLL6ZQtN4kI+uHfderoQ+S P129nvyHiPqdLYC70W68IK4XFaSJhr+qihHVk5pw1V+zhgFfuNDWcNrgveq12kHvo9jv Dw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nheyu5w5x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:32:38 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AFx7Gt013675; Fri, 10 Feb 2023 17:32:37 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtahe44-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:32:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=THHWYai+l6C1dUDMdVdmj86QVpkivsfK2pSDlFmmQWrNa/WHrSx5kvdKZTcb9qyy0GLKV8u1MnztGEEv2HzbhO7VITcAtX3PS9lnRCWDY5zeN5oij3UkvnCEt6OfeenqaL7K06ok1hIs/QvVo6GQ26vufA/YJIZsSlYUY7bgVps3uy3j4xycME+y/J126gHBiuAZXgAJ4XcgZ41oPKP3UXWqMoP7wlj/4kl1hURqtd5vu51g1zhQrnKTEqj4TmXNYCKBSG6Ht+cHGzCMDqzjvGHiEj0ikhM4P1N8NdyqK9Fm3A9YO9oKZhBTB4DKYnK2Qq8zact6eV6fzx30JC+tSQ== 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=K0rtXJOevCeTy9zI9iNUy8835YavGLlPvGKFGX0sJdQ=; b=Kh6T9VYtv96ODU/dWX0eX0PbevUKqmG51ZD2V/QgnEpq9vTtCN4g7tBadbriJLPSIwFf2CKAzFOZSYLHXx4rTDIKkpzuTpz5WGBmt7Ekd8PWtdfCJ74mnT5iSxPggbwrXxIs7VgwR/Dto9/dfxSgg/Cq4aKheMLx7lOtpyODXZ4lFbduxMt0jt35PtU+EZixI6vYeba8k2/x4frvVQvaW6v7XlARoAde8ESQPNgnJvcfmaRgLbkgLlaTaBDbiWcafIK9zb0l70HFEfcGtoZPubczTWhE7sWAT8ghPuvLtJZVzwJQnrEqy4q8YSZ9D6aX7dNChjJsTVByWML5PexBhQ== 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=K0rtXJOevCeTy9zI9iNUy8835YavGLlPvGKFGX0sJdQ=; b=VWs3TwisEhWYgnvDOEIv6R6eOIb+yPJZDGVvO/lPg0WNcnPqQBJbei1ktnlW7ribH2JTKuS2Yf85PGY8Ob16vM+cmd7hUXjPGpOAZmNMcDeai7mTvPc1cHN920HxLAgvroJOC6z3ISl2mJtbZmr5wgGYGAabm8d0Av7/ncE+giU= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by CH3PR10MB6809.namprd10.prod.outlook.com (2603:10b6:610:141::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.19; Fri, 10 Feb 2023 17:32:35 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d%5]) with mapi id 15.20.6086.019; Fri, 10 Feb 2023 17:32:35 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Philipp Zabel , linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 3/8] kbuild, ARM: tegra: comment out MODULE_LICENSE in non-modules Date: Fri, 10 Feb 2023 16:47:44 +0000 Message-Id: <20230210164749.368998-4-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230210164749.368998-1-nick.alcock@oracle.com> References: <20230210164749.368998-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO4P265CA0267.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:37c::7) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|CH3PR10MB6809:EE_ X-MS-Office365-Filtering-Correlation-Id: 22cade77-60b5-48e5-091d-08db0b8ccc34 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7KUCz/ZW2qrlQKiV86inVmHkfyFEQPCE21rTbW7rR4/2j+QYzbjOo5N1Yqf6c4pdzCgdRPk9kFd6yZH+Y5NRJAKjATRy/7XrjDMwcY+XLUEXmsQ6+dioGhNewWu2rvWuK8tgZo76yOh7x6bAqU7Vlth9yBBNSy1Dq35dYPiZRMa8MhD5I3UDOjKQs9o0wP+PLif2mLLETIZq1xwLa4Q3yxGR4nbhgL4+3RCdSfapgK6XuCLHz6tREPBha8NNxUuoWqMYt8G1zBgxebmWGmhaA/FJqiKJTS5CxsMpWMp4egKad4oZqdB42KIiEWU06m9G7iyIYvzHZEHJ2aG8TFGJgYyq0AaXd4nFSTQiZ3utci1FUEY5MmiL6tUgo81kDTq6mhrg1NtjB+LHLxopvNacl/IShVwFmiYnMl0VlN8I16QbpPLSFpX0QE85V5DWzZ5STRkbdEWNz7vgD0k+7FO2QqHYrUhnrD/9yDgOmTBhNnQy5JV64m33Vh+Gnmx1zRs6OFCucqtN8boTGWvdVldCjnt8tvxsx65MMN2yweOeI94+Rmm7Byw8E14yLgMR4vtXFZY8UkhR2stvdovIMfc34/pT0mLOMXNDtAieodgVQ6RTRtxA6Ch7T7NWMrdozc5d0+V0L+bWK8ZCkfd5zUvz3w== 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)(366004)(39860400002)(346002)(136003)(396003)(376002)(451199018)(6666004)(41300700001)(6916009)(8676002)(66946007)(4326008)(66476007)(66556008)(83380400001)(86362001)(38100700002)(6506007)(1076003)(44832011)(36756003)(2616005)(186003)(8936002)(5660300002)(26005)(6486002)(478600001)(316002)(2906002)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0tz//CR4436H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oV2jd42CIPXCnEjIjRIzcN2hv02JFULyAU39/Vn10SX2T6Jar3daS4JJjF4LVGqFoviFcC8LvvpD89J257yppO+G5Fjg/X2nRvWxcC7SLiBpiRF20bOcRoYdVAeCbzhG/A7o3mQBzGc2mFiXKkuEF+5K6v5SgCU0s/nb9dMfxsZEe5DV9G4BFiFlKRu8Qva5V3Mh/GmFZMld0P5XPjUhcObAsJtqfLfKR5DghJOudnyrb4Q8FD6abtoB9bmkYKtf98X2j6VnQm/+z37PRBbQqq16T6KqW5iiGywMqyyQvaFJvomPrMX0GYqPGoGd0lxpiAQzKDcBSS8eCe9ePXRhoaxKavfa0OLBYMtRJR9lxZ7FnvLdxJTvALMu+gNokEH3eTswrGjq6CBt6M4/FLQlIxg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22cade77-60b5-48e5-091d-08db0b8ccc34 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 17:32:35.3752 (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: 0MjUtOIhW77NQqj3R6snJ/Hl5qEkHem7LvdiRY/KWY0L7kekoAi/N7FkB45Mz4Q8C5PfewFJoeA6fGXtbljfdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB6809 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-10_12,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100145 X-Proofpoint-GUID: jTs4Txu9ocAbe3pmHnB87Zdfc2V7MN_- X-Proofpoint-ORIG-GUID: jTs4Txu9ocAbe3pmHnB87Zdfc2V7MN_- 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 comment out all uses of MODULE_LICENSE that are not in real modules (the license declaration is left in as documentation). 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: Philipp Zabel Cc: linux-tegra@vger.kernel.org Cc: linux-pci@vger.kernel.org --- drivers/pci/controller/pci-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pci-tegra.c b/drivers/pci/controller/pci-tegra.c index 929f9363e94b..aab1497411c4 100644 --- a/drivers/pci/controller/pci-tegra.c +++ b/drivers/pci/controller/pci-tegra.c @@ -2814,4 +2814,4 @@ static struct platform_driver tegra_pcie_driver = { .remove = tegra_pcie_remove, }; module_platform_driver(tegra_pcie_driver); -MODULE_LICENSE("GPL"); +/* MODULE_LICENSE("GPL"); */ From patchwork Fri Feb 10 16:47:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13136066 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 7A615C636CD for ; Fri, 10 Feb 2023 17:41:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232675AbjBJRll (ORCPT ); Fri, 10 Feb 2023 12:41:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231881AbjBJRlk (ORCPT ); Fri, 10 Feb 2023 12:41:40 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B4306BAAB; Fri, 10 Feb 2023 09:41:38 -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 31AFO8xP031089; Fri, 10 Feb 2023 17:41:35 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=cbqKvme+VaREq1Ma4oGBVBnRer5emw616OxHczoRRC0=; b=d6ho5zEsGqi7KtIcQjRHY78N73RgpIQyLRkCfx1ZmS2sGxCdtKawh+K4UsdP+wFalC/J RkXOUeIjMFb3oXwK9jyUOO7fiyoxT8vQXhilkCjVYMwFOz14aAXGEIDDuwR/pqLUWPO/ ZfDxSheNQKPpYSeq55tQiy/3rVaVEFiDcXZdh9CPH+v6UvFcYRugu4xp+KiyFfxZuj1L 7s7Ig/q9FXuZAm+zrFwtomhT84ymIOQ4svCn9iC54P1mc95/G0B9H84pouhi3zteQoC6 PB1mu5yB+x4KY8XqRQbIum/i8hA+pVcwujDqHz86S7HpFaKI5NivRfSHxuTsiEDfmMsi 2w== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nheyu5x0y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:41:34 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AGE7s5013647; Fri, 10 Feb 2023 17:41:33 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2171.outbound.protection.outlook.com [104.47.56.171]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtahur2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:41:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mtsMiWQegvFj7Qq0j7bBiIy03KtosnzrGuWaG1wz3Ah0FtMbD+bPrTIj38McBLpuN/WY442OgnS+uuchDXQ+PuVzIMAx/unsRjFT9Y7ujTuntMOOtEh9c7QWiUUKewfRftrYZsNGnINuRGU/FP3cgliFQ0Us7f00J9tboi3lkzeuj1JfTcF2pvEpApnyIC1fPWgaWONKQfHXBZOWJ+YXVrw9ceVM1z9HprgUTA6R4KCfRSLGZPpvjRyvhLbg+YKFtkEa/qxoU+vdFP/am25euuvoTrY3qgiP7B+rwK1LIirUw3cAvM0vk2/p2DjmAqawFIF7PEqKCBWd5+mNtGl7tQ== 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=cbqKvme+VaREq1Ma4oGBVBnRer5emw616OxHczoRRC0=; b=gag6GAii9w7OArZCc42NRDvNqvNMKF58ifNVYw+uIC7hkUd5Jxo+3+m85INjxr14IxBOxyuq1W1gYnJnRJs7Qu8BOiKDOjPzv+ANuGssxtwjnAVsXjxPevVZu1D4Po/XeTAjlpucLLtjoAaqJbJPPU78ylrWMjggJXFgzwx47RNHWs0EVBRmG4fYRqLiBEzuLx3hOwHeelXF7JJqxsBS6Uh5wqtXeSODFLf8kQnfqi2um3EP1m9orVVNpY8v9WsVpVLE5Quj7mQp8XP7wYiVWm9mkM85kZDXoSc3+bH5BacQPKX3cyuvQCfHQeygR88gStGKU0lRHFLaqOBIbufIEg== 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=cbqKvme+VaREq1Ma4oGBVBnRer5emw616OxHczoRRC0=; b=D2bwS4ME8FAUAVHot6VqRJB+VdsROeXTICF79ew9rXdX4tEiBK4YmnnQs+01pcGD63O/8wgreSZyRwGCQCuOqMVgjkqHXBNPIYQd+nU0U8/tELqmlpdBZm1SFxlVquRTWj9viup6p0dVGX2qhGy1W2pFHER4/2N6Rb2JXWjJtFw= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by DS0PR10MB6775.namprd10.prod.outlook.com (2603:10b6:8:13f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.17; Fri, 10 Feb 2023 17:41:32 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d%5]) with mapi id 15.20.6086.019; Fri, 10 Feb 2023 17:41:32 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 4/8] kbuild, PCI: endpoint: comment out MODULE_LICENSE in non-modules Date: Fri, 10 Feb 2023 16:47:45 +0000 Message-Id: <20230210164749.368998-5-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230210164749.368998-1-nick.alcock@oracle.com> References: <20230210164749.368998-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO4P123CA0176.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18a::19) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|DS0PR10MB6775:EE_ X-MS-Office365-Filtering-Correlation-Id: b93cfa16-e179-4c9b-f020-08db0b8e0c0b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FOJdKdV7L13eBg7gsj5zOUEPcEjash9OPEQD0S766mCZPCY7+lHMSRIM5PJ5fMIx8oxagGipbhQA4ntYnPaHtQjvViU+L1ieX3IvYXP861TIGtGcxcIARl1qnaxz36vwEvXR7A7U/wuBSFBrfNwQ2Cc+q9/rvx1XY/vedhXb5TcsdsEKo06+w86HUV7zVRL5YJQixn3JINkKsW4wAzPDlpQ0v17sgVlOyfVSdGUcPNu6hfPrpY1X31VIL125U0tNTj3Rck2wZ1bic015L2dqBtsPn+S7pD5s0qMA5oVGuA5PCoEUNeMFrLjyK0u+vXsGNKeRnTkMiHtu4EaYSYneSyiw/N5ZQhqJD50BYnFCCs0vGDTJwUJ/K9kWePfGKH/5yP5DNI2bfPXAKmKLBMxps9HF3qZoobcix7R+yfE4byjjbfWNodvbhEJ9bYmi0PMo562I6E4RndH4z0J5itpoTWJ84LFN7sfYK40bbxzPYZJUoiqY3d+ay4IDhYIQC+ArVDAVbdOJqft6NhHb2lblpXmY5ooQU3WMV+z/SuYhYn+mzULInOIsEc/CEVMteWBuAg+Xv9HU1MQcrY3sknEoBFA8J1jerQi1FS5552NKGZKqrBZKpnDKQTLxqYEasFxcfu9YcNRSwb8AzipeXSIrWA== 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)(366004)(376002)(136003)(39860400002)(346002)(451199018)(6916009)(36756003)(83380400001)(4326008)(66476007)(8676002)(44832011)(86362001)(2906002)(66946007)(41300700001)(38100700002)(66556008)(1076003)(6486002)(316002)(2616005)(478600001)(6506007)(6666004)(8936002)(5660300002)(26005)(186003)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: c9qBGion0x5Kdt7GKnoA3qEVf+E06ZOD4LVEF9HrIBzlIR4i0RAHKWZVKZMdC1gqP3WXOuUW6s4HR76M9GKxngtnMnl2j9vxLJlUOPHEKkDXWKgGYUK6+YMRImll53YQXxSfCoAo6tAcYwJ/l8A5rlRUO/Oz2Pw6Ey2skF73blkZWwjrHQrcGa85a4Dd/CJhKKxyVbRzCWwPaRBNo8Uc5SN/B9ej75vkGleIiy80WZd1//W+pIw1FGFwRsRFDJZOiivZiA9yOq3Imjg2VQOUipI45nCDWoh/kevyh9xZ60Alf83Fxz1M0fmxRPDTc7niTVROv9HvT8v3RHwwcLtqLbnDl7yZL5nvxneHlT8W6JT4Jmqy7jxTMyUzQqzgflbUQhB0LEUoi5XdwWZQEmFdRffZdMnF59tSPCQL21PQcl8oUtGL+P9NOxDQcLLlxY9nl0YThJ9vbf1W/CfSvTwAMWedc3TGQYJiswCNX+7Kl24SwWPd8cXOIZHBQVrZjwqp9sdnykL1dcktENlJ7OP5pnwSClYAg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-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 42jqdQ7cL4HiL+RQZsdUrr1JZ0MtoP5Ox+UOZlOF2oDa2gyjhx/C9PvSOY7nCptJuSnZIrj/wefLhsw9z/jn30nw7mCQrzCGQIOPMJEPL451k1akInXZnB19ddak1oMbbRakFyiMKYfdFH7T4IpfSZqlFrkyI34Wqa6K9CCKY9IVGz72fCHY/24U3xiqvmWZQ5gFBp2KHXQotKjNbz9JCM7tP3b+L00gIhIgHgCVjkOcRUrOl5Y+3dJWORXFBryWGWLb5XWRc/WYsYzfTn4t1zOVj+qhw5CC295oE2GtLxryGFPV+qptoaib/dw5Nq57bdqtCAS3OxhC3cbv8MVl/UlbTFTEReETr/t1v6hbvJaZvL+OHoBXPUShDBHUtHNZz4pZ+GUx1jo+qqNa6bkHTykM7zAdspgIriIG6suju9tzB+n2MO01MC0C6zU4MBQl2E2oebDeuWqhdr4hMKyEIGu/HmJHFOdkCKiZs2cDw2o26mqdOLt8JIp+elirP/eYRRMDTWIzhQyRscdIoCgEOINJM2teZboZWBgf2lRTbTUZ83BZTsNMxfXF0t2s3XCDS74F4EoTuNJJ/Hme51fHyKP0zQi5Q62dSbN/WwXHTG93XpksCVH8h3OCrk3tkPGOcC1O2G0cduvllxYRZREhVn/6V20aw0UQQwhp2oPa7wlqyMMEQHUKu69PgNsAJqgZF8aEdqGdNkmrKAYu2jcIMkt88jOGbYVcs+wrKzLOP1aZ8VgPmzZdj7L6XX9cEQPkLlwW/cyMT6+jPO5yj5iKtINSLhoLIhXs39u0RP9lczI= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b93cfa16-e179-4c9b-f020-08db0b8e0c0b X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 17:41:31.9834 (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: dd+2GDbtQSSV5/4vfizdqfTG3kBTKigi0DA77MiXu+cohylBigJtGfjHAWXy2xgBKpGXjG1B+aO4KqXuj5Qwyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB6775 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-10_12,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100147 X-Proofpoint-GUID: 2it0bOGJeKAr2lMqHos5J8w6NJA7ABAS X-Proofpoint-ORIG-GUID: 2it0bOGJeKAr2lMqHos5J8w6NJA7ABAS 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 comment out all uses of MODULE_LICENSE that are not in real modules (the license declaration is left in as documentation). 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: linux-pci@vger.kernel.org --- drivers/pci/endpoint/pci-ep-cfs.c | 2 +- drivers/pci/endpoint/pci-epc-core.c | 2 +- drivers/pci/endpoint/pci-epc-mem.c | 2 +- drivers/pci/endpoint/pci-epf-core.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c index d4850bdd837f..52cbe1a5d677 100644 --- a/drivers/pci/endpoint/pci-ep-cfs.c +++ b/drivers/pci/endpoint/pci-ep-cfs.c @@ -728,4 +728,4 @@ module_exit(pci_ep_cfs_exit); MODULE_DESCRIPTION("PCI EP CONFIGFS"); MODULE_AUTHOR("Kishon Vijay Abraham I "); -MODULE_LICENSE("GPL v2"); +/* MODULE_LICENSE("GPL v2"); */ diff --git a/drivers/pci/endpoint/pci-epc-core.c b/drivers/pci/endpoint/pci-epc-core.c index 2542196e8c3d..52498ac868ab 100644 --- a/drivers/pci/endpoint/pci-epc-core.c +++ b/drivers/pci/endpoint/pci-epc-core.c @@ -861,4 +861,4 @@ module_exit(pci_epc_exit); MODULE_DESCRIPTION("PCI EPC Library"); MODULE_AUTHOR("Kishon Vijay Abraham I "); -MODULE_LICENSE("GPL v2"); +/* MODULE_LICENSE("GPL v2"); */ diff --git a/drivers/pci/endpoint/pci-epc-mem.c b/drivers/pci/endpoint/pci-epc-mem.c index a97b56a6d2db..a3280f699f96 100644 --- a/drivers/pci/endpoint/pci-epc-mem.c +++ b/drivers/pci/endpoint/pci-epc-mem.c @@ -260,4 +260,4 @@ EXPORT_SYMBOL_GPL(pci_epc_mem_free_addr); MODULE_DESCRIPTION("PCI EPC Address Space Management"); MODULE_AUTHOR("Kishon Vijay Abraham I "); -MODULE_LICENSE("GPL v2"); +/* MODULE_LICENSE("GPL v2"); */ diff --git a/drivers/pci/endpoint/pci-epf-core.c b/drivers/pci/endpoint/pci-epf-core.c index 9ed556936f48..002310a3b55f 100644 --- a/drivers/pci/endpoint/pci-epf-core.c +++ b/drivers/pci/endpoint/pci-epf-core.c @@ -568,4 +568,4 @@ module_exit(pci_epf_exit); MODULE_DESCRIPTION("PCI EPF Library"); MODULE_AUTHOR("Kishon Vijay Abraham I "); -MODULE_LICENSE("GPL v2"); +/* MODULE_LICENSE("GPL v2"); */ From patchwork Fri Feb 10 16:47: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: 13136069 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 D9924C636CD for ; Fri, 10 Feb 2023 17:51:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232215AbjBJRvE (ORCPT ); Fri, 10 Feb 2023 12:51:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232178AbjBJRug (ORCPT ); Fri, 10 Feb 2023 12:50:36 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EC651C7CE; Fri, 10 Feb 2023 09:50:35 -0800 (PST) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AHi0j0028173; Fri, 10 Feb 2023 17:50:32 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=1nFD90H56Prcw4fsmUXAbCFMnoUHLNx+v63tLxNhAcc=; b=AUipF+TJ5KcV3htVutQEuBPwTmNszNrzR26pUK2GosC7Hx/Bb6BVFtU3dRSpGTLruMRc WYUFI7Uy6IDWwn/UewsmYhIwKN2bOttJAfqgdh0bNUltpjG9ylMoiDMhXBiE/BLb3z14 fXE+5BTZGu6/H/A+Nw0V8lQOXFiW0nP6bk5JWYOOGcu0o9IvYc8/TqudQcrRCZ8J3br1 bMMkHmPCmgVn8Nz2rA+LUILk6O3DtVl/EN6jy0JSzneJ46s0C9kC/tHFV0ud6jXi+TXW uRoV6JuOTEgdrwla+HPH//tDalqkz2OpCRPOvaAow+fl61URf2y3+grW0g7BQbOXTIok og== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhfdcny4j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:50:32 +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 31AGFCVb025720; Fri, 10 Feb 2023 17:50:31 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2176.outbound.protection.outlook.com [104.47.57.176]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdthn1gp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:50:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i9o1B+gXpJpnmeBKHP8LkGsE8Ms9MHC9/dbbcBIXHvaqGPs9MMnYmjm+S3QqAkHuQ/1Nf9TBRYWrZ/QDX1Jk/QUqnBIb6czGdMp0LtpQf/TCP8tqWuMA3M3dRd3CvtTTNn36yN0EV6z5F1zrXP96Aif47BzP07xThiZ8H/c0B4FCAfeYl4JeFpt4cjXeY20VSHjOdhuGgC7i4FyOGq7goTD32kysY9eworfk34rEXDvfWcFzAHzm07B+knOCCo2Uj/pRBbWATiq+wBLu3YZwxXoGPGMQxryUVZaoNMEUh4grCi3a/2B6lcd/d9b7zKvqtL0NNOITdGfx9fuIHdJ0/Q== 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=1nFD90H56Prcw4fsmUXAbCFMnoUHLNx+v63tLxNhAcc=; b=gIPLNB0oKA1x/TS6a7nefjMumzhksAy7Ia8uGj35Eqw1+QlmiDEPVODLeNNJs5IfUL4bhwuIIoEph8GOdQ65XwledOT2huSw9jeDn+RaXBiLNewXabiq0rfN+q70EUEbhfiiZmxS5bt4pL0/O8ktW6JV035I9Ik+h+ooIvYV6jlMHtfqjUeioxUp8mN8DvRYNtMycxahDTgjRgcev/4pJmXf3Ykr/BPxRnHzDtqQqr0JmtYAulMK2DLrpx8o4xZtuhmU8swUn9RdOm8Ouvuqhtfhfz7fXs3oxYcHcTuRX52HLtTvE/Ia2xh+xOLSmVXiuCvM+WRQ6NuNeXahqCM5fw== 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=1nFD90H56Prcw4fsmUXAbCFMnoUHLNx+v63tLxNhAcc=; b=owe5pygbPw30Yiw2e4R9rZcuiT91WScWw3k4NhwhrhlqGSBMTFqb+zwW7cOj6YZr0CWbw2m0Dtmy0jPFTwVVHGwplel7fbIo1F7VlqRuK08JJzVIyJU57FDJzqhhk0NCMU7jV0xuA2f92hUC3VHnKT4uCCL7MqAKQRLQ7kmeOT0= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by DM4PR10MB6256.namprd10.prod.outlook.com (2603:10b6:8:b5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.7; Fri, 10 Feb 2023 17:50:30 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d%5]) with mapi id 15.20.6086.019; Fri, 10 Feb 2023 17:50:30 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 5/8] kbuild, PCI: hip: comment out MODULE_LICENSE in non-modules Date: Fri, 10 Feb 2023 16:47:46 +0000 Message-Id: <20230210164749.368998-6-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230210164749.368998-1-nick.alcock@oracle.com> References: <20230210164749.368998-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO4P123CA0483.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a8::20) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|DM4PR10MB6256:EE_ X-MS-Office365-Filtering-Correlation-Id: f90b7bed-dc87-4d70-cbac-08db0b8f4cc7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GirUxlxdGjSGWVlYYpTXTIEEBtW2Mx5oNtPhS1bhNZh7idZ/m+glyim6cB6JMSBl3lvQo/t3GwBzLiHUXwwUHPUnHyB/XoNuz0F4/Beou//aGuYfT/aiVTuseXpQyOfipOmVlWhF3fzJKS8WMeztkq8e4tretf4L609SUOxRG2JbGHVSdEDhgQnworew2kmIYOx32igXgtejYUlAf3cGxHPxJ/SxVryvMsslHticxKu4BE7h2YZpnjLPItejOy8iK7WxziA+fi6Fp0kUdPfp5FD1Al/yW961AQOOrRt4tFIQFvyuG9DQdUP66aAGKzihXu/Of0bXt2NFqJJseTxVYuiZqKj/AVm467xMhFAnS5K215XuxVUicz/WPepImNVYUT1qcho81MBtgWhch53ip2gCQUO5sPjSWyh/yPdaHzqj9s2SxSl593Ieb+3kSgGzRBU4MEP0gyw03MLUH5PAkPxvL0JF4lqjCsNkpbrPBZZ4einlpsktX5glIcsBAdwGZnxxPbdO78wsm5noyGMtsnun+HOXveMJYpg+WikeuU9Ojh9offK1Wf7AWP9cD83+AtLI5P1mA4j7FME8gCguE+MjZ0Ie+a1g3dxqnF4A+tyWe533ig8whNs941EoxWWBCQqNdT/0pImdfh7OBwb2Pg== 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)(376002)(366004)(136003)(346002)(39860400002)(451199018)(2906002)(44832011)(36756003)(8676002)(41300700001)(4326008)(5660300002)(66946007)(66556008)(6916009)(86362001)(66476007)(316002)(478600001)(6486002)(8936002)(6506007)(6666004)(26005)(186003)(38100700002)(2616005)(6512007)(83380400001)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gXhp4GGff6Obs77jT0w7L9kuZeaQce/owXQOyu+J9O99iL14trjTaZYTTUJuYrJntCtDLF6quhGDz/Jq2QkNou8gBErDijn2YuJQ8wdtk3V5rFFtZQiFA8uTcgYZqI2VVnVTSYV+rVrt6HFfQmNhSTF2h7Ut8YB5jIcIo1kKIUXOiP9ixC6oOibbEioF+dyPKNlV7XDG0by9tg+nUtGSQQO2u8mOPadiLdrKvQR5dJ26Bq2mWbR27GmelfjUv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NVJr6s2ZT+UGql/cbNMRs3fKrdtDUCfsHYlgvmu3+6kt9GqUHlhzW7srv/yUV8ur4EmqVw068/w49/xAkdx9etmGVeiAe1V8SOShmxD1oK9qKh5u4Y0tfnu4a777KBYSHd1ZBGa6r9YeESMJn/dix3tGU8VzxKRHstVfRyEokqBT+W+OCmjALuxKRaTBg58O61e2oHm5461EFqXiD5Z0tvzGWc5AcMdxPQv2d3j8z1cRnKNQZlpqrojk5yeCIrsHfDprLzF+YCQOqWtLQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: srzofP6K/hkyC7RWc+EZRmoKWLrPxs8B2j4zAqc7et50Gp/qSSL2paSXW0kAkE1U3o6oEAAYkPe1M030XG8D5VNwmr7fKOzdychJ3HU6ns8Pd08HAxmEj2v8L1h7TlPrt2/tfozcN+PUSMxX8DXx3Rgh0d1k5JrrXdUzC0wj/eY+2bgDv8pmFqBIdcqynKJmk85Ba7DcEsVtEttWC4qjAbghPkVEaDKkUu1T5iMMB5Bwx1FL7zgVwJk9K4zs/DVlgM6vgT9fSeymYLynpSR9QW/rLkERNTGk5ID7GIKfKhAY0ImLBdHWm77WCbhS3id+GiBwHaiTmAPp0IW+T44MGZvvix/HksiKBllr68xSz9vAIb87JAWO/5NG1eZ03F3pX8G4X2EZfjDkre9ma86UdqGBcEqw980GOuxa2rHexmM0COPDF67qHcHGLnhL2cVL9Gq+76/VETBM4vFOscTLDvFC+kovyIDjzMWtXJhFIUKgQnsFiEl1LPIbKtNyt7fCay6lYVj6k/bRdmHJHpSG0iod1jenEx/LLWA8vyxAOCC7USNzB/5syjllfZ/V+PjJcioONwGTv6L4S7ae+Ha7BFr8hIgqD+Fo40J7MLsRHIlsnQkdZaq4Xav+PCvbyycc5+RNjDYqdcnRvhj7GCotdhSbiSeclYHpoH62XGhLeivtJX3Dwdyp11eWynEfCzfxh5iPuEs0NKcvmRo+rEF01TroGJgc04CEKCoB3mUg9FDEdcs85wpNuibi1T384poZl3fV64o9EWk9+NdGaTXObzD6WCvpEtuIt5S9xxCX8f0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f90b7bed-dc87-4d70-cbac-08db0b8f4cc7 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 17:50:30.0698 (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: 5Q5i5pSlwRBA3lz+kI8wm288EJnW4o8ZfgbKaLn8fZN3griWzwEkkA+Ead3NykY4hdCBdABob9azdG6P/8q70A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB6256 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-10_12,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100148 X-Proofpoint-GUID: JckLdBNk2fK5t7gQIokLJl1j04yW10AG X-Proofpoint-ORIG-GUID: JckLdBNk2fK5t7gQIokLJl1j04yW10AG 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 comment out all uses of MODULE_LICENSE that are not in real modules (the license declaration is left in as documentation). 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: linux-pci@vger.kernel.org --- drivers/pci/controller/pcie-hisi-error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-hisi-error.c b/drivers/pci/controller/pcie-hisi-error.c index 7959c9c8d2bc..ef8f3121ed82 100644 --- a/drivers/pci/controller/pcie-hisi-error.c +++ b/drivers/pci/controller/pcie-hisi-error.c @@ -324,4 +324,4 @@ static struct platform_driver hisi_pcie_error_handler_driver = { module_platform_driver(hisi_pcie_error_handler_driver); MODULE_DESCRIPTION("HiSilicon HIP PCIe controller error handling driver"); -MODULE_LICENSE("GPL v2"); +/* MODULE_LICENSE("GPL v2"); */ From patchwork Fri Feb 10 16:47:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13136077 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 61093C636CD for ; Fri, 10 Feb 2023 17:59:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232513AbjBJR7j (ORCPT ); Fri, 10 Feb 2023 12:59:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232163AbjBJR7i (ORCPT ); Fri, 10 Feb 2023 12:59:38 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3283F521C0; Fri, 10 Feb 2023 09:59:34 -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 31AHwg9Q019333; Fri, 10 Feb 2023 17:59:30 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=N5l3NEypn19ia1Uij1Pb4txbi8wcU3eXmL9Yk5ngQeI=; b=kT6NsyMdW3u4soGzLEeoExBcYUwnkp8Hyy1s5oty7GzR7WSrEVHhdVqgzwjZuw4+BQiJ Yeq3chXAFpTkB5mfd+hhQuCNH9Z4EfKsPg6/0S/WXPM3MBzJXu3tt/5863DWlfi5bQUC 2aexgNbne6dF4XyL9cRapPJcQhH8hy9V/oAAwIuVNBHPt+/HWsTck2BLcSDMy+bmpeQv oIJPdE9aolG/AA/+djPy7xHLP+60Bg+bRSWjfq54Kglah4TRiAUBsAqQHQvYkO9Jg6Xo Fz4Te/VUGTO1XbSTaNVmzRKdVv4VFBIykSzWocZYviki7uVNBAcqOb6s5zRrC1gupsT6 Sw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nheyu5y9e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:59:30 +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 31AGCINV015135; Fri, 10 Feb 2023 17:59:29 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2044.outbound.protection.outlook.com [104.47.66.44]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3njrbf3hdu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 17:59:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VFa1UXo+MHbu21zHg9a4XZ4AQi3cqMrN9N6iepqjPGQZmq7AKlEaFdbNGMS/mpoupUGTnp9PPtT3o7YL4ocvZuJaHvuwf4AZwq5LI+XyX8BO35n+RMSzyug3hGFysGO6kDYhaIT/Crh4gIaeyWKEY9J/jFVmPMKjfJSZy2xESh5T7AFJg2jrYIOv7hwKpwopjD7x8FYv0qLxDxfCzkQiz0Uq31D6Pl1pMap/elBvtQLkYh/qYwoEu2gU+VYQcX70SS+qi7RACgsuFfb+FZOP5Wxx59mnx/rlQ/569vZjDchPlf+SWBJgeTOAl8+KNjiwjERdaZqFJAOMim9NNrkHVg== 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=N5l3NEypn19ia1Uij1Pb4txbi8wcU3eXmL9Yk5ngQeI=; b=iuAErh8Ui2VHyMcXIppJePkTnhW7q7O3+UHa89WguYJuKVZ4cCL6OY0SjGs2IkFeIGgAs5j/6H8hyRcgxZJR+qp45ymtIpLy/2RaZ/ZfW9rZiTcnho//ZjGacG14C8XNXiCMBxYDrKzNly/NYH6uYTh184irUdhXqOfvObdPXdYqtBh3JcyadJTNR+LkMWPdCPpD8tw6FmMS+Uyoky3Qn807oVtj1SdG33Z6uYfHP7NkKt24CctwD/OAaKEzUDLstMxH4rkP7JajYD62J3j4uqQZn4EQ6BKvjWT75Yv6dGj+lK5mgeF1rqPK9LVJWAJddYgDQzAdFCoAV59nndMusA== 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=N5l3NEypn19ia1Uij1Pb4txbi8wcU3eXmL9Yk5ngQeI=; b=n0ksaVmIMvea7Fl85v18xLkiNEe8YAod2+BYXg0H0Iwi8cuw93d8QBEkIcCsi++B3Vdfzh0o707i2UIXJnNp4xPnPh3lSHoRKA9PjzutrjRRRAz/p6A8815VdW49Yi0rDBPDJqZHp5D3ee+A3R0jBQPLYdUPHtR9Hd+r1SxhVSo= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by SA1PR10MB6543.namprd10.prod.outlook.com (2603:10b6:806:2bc::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.17; Fri, 10 Feb 2023 17:59:27 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d%5]) with mapi id 15.20.6086.019; Fri, 10 Feb 2023 17:59:27 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 6/8] kbuild, shpchp: comment out MODULE_LICENSE in non-modules Date: Fri, 10 Feb 2023 16:47:47 +0000 Message-Id: <20230210164749.368998-7-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230210164749.368998-1-nick.alcock@oracle.com> References: <20230210164749.368998-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO3P265CA0005.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:bb::10) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|SA1PR10MB6543:EE_ X-MS-Office365-Filtering-Correlation-Id: d77ef8ec-f52a-480c-1941-08db0b908d59 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K8C5gWa0UpsTBBLZFIKkoMXO35OG8sUqaxLDmyTIFL6IzNZZ8x9glzHgGw+KwrrL5oBZS402ztbwk7MgyxYkq5d6wVLpIAPANQ8ceEiWOCLynGorgB0HyG2ZhaAEH4bfKCh7jgGh2aIKrO4lBT763jXBt4HnxmjPBA724rwNrfs0g7Df6ZqyCxxrBau8Rz4vTpsCq3fdQg5dJLNjaKYVNew1Ddb+Ru5DmkP7fF04iP6vK8UF2RcB9RmXF87ZZFBuxG5l2JPKhiY24Tn0Nd5h04qH/AoN8Muy/NnszlU7Q9eDIxpE6E+qv/jGyFE0kyPMaBHqICsfRfc2f3KB4VqUx9CX5tVv1pRlZYJNqXErmnz3fjlGGC5di1NGXboXu7vjV6L/ycimIR71hbwyiRgH9gWEGJYnmUN5qy8F0NSNtoK/9gjdil2kGcDyBhM5jVV+57IFrnsOj8H5713TNEFXBE0xbuLoQL4gAQ5D2ThZsVWGIMNC3YGTZKXLok+6TQ0ItvGEy6ZDq4qF3qjC2n8a+NrGeqgihwWYsC2Wv69DBTYey2e6MahN3Ls9OlrnFALR3+2fbaevdk/Y2XVItAPFRXNAPyfpdwWexx/htA6HjCFDD+p4J8ybj4096ibrsddqR3RAIfjpfTtklFLmFcLeTw== 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)(376002)(366004)(346002)(136003)(39860400002)(396003)(451199018)(6512007)(83380400001)(26005)(6506007)(186003)(316002)(5660300002)(44832011)(86362001)(2616005)(6916009)(8676002)(36756003)(66476007)(6486002)(1076003)(6666004)(8936002)(66946007)(66556008)(478600001)(4326008)(41300700001)(38100700002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q/CY7rPq3uDUqSm3TykLNPuufGgkO+CfYQGA5J0s+TXoDPXW/FWdMgdIcSEbeIY7jAQduhYabKaYABlRMtd9JI85DoNG4+vFRncpIVEBsjI2fNZzpBmOyZZ47wTjDKKks5wQV8kzVSEDN/cZRnWumFgvbXVR+7RUeQzhXbk8zP/U3oy06rbDQeBGwe8hWAjoCH9k534QW5lsbEYgKDkrU2M8i8h5W9A8pHGvqwI0m+EoEvfyckxyNhMcupmp5LMZMmjSDVGwKi8ojnNC9gPqUpGFJjflSWQhJPOC6wUEZyxUWz97pm1wRDq42KQ5E1axewVDRqyjWUSPiMA8mZItIBW6hzkpnHDfFsJwzxLGZCMq4whSYcxITGqDYkmn8kPl9sHPjgmLPsc1sX/0PiADQdJJCxRW+c16/YmPtbQk9zXF0Lpsi3wVabIS5X+KcSo3GT6D9RG9sbkAA+EHb15/bPek2gFFYqkQpcKxMD2hus2w5OVQZ5oXhYFeO+e/FbfsZCBDnX276OUw/f71IUy+oWPYc8l3UFFWprBTENgT+VAxOsDLpW/8cAFfBbVkY5/zN2YMYS9M3B0uABRQdf34Mu1lBNrIEb6Tngo2nbxWsuhSv49/a3DbZKjekR2o9/Kbjya6YaDNtZhua9VYiaFIQ9ybPD+q6OMpiuiFLdS7GDw/3d52pLuepMqQ4pVNF4AQf//HzOFmLrjmiAspUiEG7Ok4l6/hUpHPuajqsDtLkb2W0o38D/acc8A/8sevLqhN0wXHdyD/r3ubWGwU3QAq1tf/9MAMoM1liQPaRbqFIVqZ1nPjrgnDSN1rgD76za4ST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PSH7KSdpLtq9mTch4QLfqtzfvI2QCtTMYidtYxJg588ddLsfwBtrEEZjtAFksuDsxTDqGW3hh+Nav8HmawxOvhEjSS16k1w/hyPn2WuWDFk6CCifUB8KgOo8YT64COeAIn7UiyGbqMgmOTcOhkGNP7kOpd5o3tgnJVDSX1bDG31qVEk1wHOUk4ylSFeUJNIJTgkKhHeS4/pB4aK1n9ad2vIsnrDFgEGwLCGbWFDaQ3YnSVAzTnLV8KcJHys8pR2Z+NxpoNlLvDY8rzCcTXtD15jPEQmD9Wn+HhN1qU7G9Z0tNnGyWkiRcioW2N5eKs7VzDhpR6Fc0bqjMUVvOuEVfDqBkqPJ1oHjA0HXfwQJvCOnBpaNdEXpZV40LXNmu9+cyZ5i3JODwrR30MCMj14vvjVh3hMounA2nTplRWqAQyoGxSB5f/4JTkT+kq5ak9a7MDrHrcuj13zwfyZxHrq+12Y6vzGaYaiANPkIDeRKpI7GRnucsf2BHXcjlGN5kNdLG60pZLlciCixuFPAGJnZJ2hR5GPGZKswUJN+AAbxz+ZoJt2/0cFgRlJmKFYJ3P7+XlOF8XuSRElCpmlAqDjU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d77ef8ec-f52a-480c-1941-08db0b908d59 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 17:59:27.9086 (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: A4QzBTRSjp8XzFJutfXUkj9BmM+HUHmq2Awjvd+jaKOgUX4ROITBu/MHSH7ZB9uRTyHALYK7qTqbO68Dv2WUtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB6543 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-10_13,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100150 X-Proofpoint-GUID: qHmrJN2Yn902Xu7V3lWr9ae-fnHPbzew X-Proofpoint-ORIG-GUID: qHmrJN2Yn902Xu7V3lWr9ae-fnHPbzew 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 comment out all uses of MODULE_LICENSE that are not in real modules (the license declaration is left in as documentation). 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: linux-pci@vger.kernel.org --- drivers/pci/hotplug/shpchp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/hotplug/shpchp_core.c b/drivers/pci/hotplug/shpchp_core.c index 53692b048301..455f247c27a2 100644 --- a/drivers/pci/hotplug/shpchp_core.c +++ b/drivers/pci/hotplug/shpchp_core.c @@ -32,7 +32,7 @@ int shpchp_poll_time; MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); -MODULE_LICENSE("GPL"); +/* MODULE_LICENSE("GPL"); */ module_param(shpchp_debug, bool, 0644); module_param(shpchp_poll_mode, bool, 0644); From patchwork Fri Feb 10 16:47:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13136085 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 1ABE1C05027 for ; Fri, 10 Feb 2023 18:08:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232520AbjBJSIl (ORCPT ); Fri, 10 Feb 2023 13:08:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231889AbjBJSIk (ORCPT ); Fri, 10 Feb 2023 13:08:40 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F27F5EA37; Fri, 10 Feb 2023 10:08:40 -0800 (PST) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AI0BuJ022802; Fri, 10 Feb 2023 18:08:29 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=aTq8qAxwo+vyrgT3BEPdy4OT85Y4c0ZSnWaBs/R1fWk=; b=izaBuQ/OAxlybdXSXXPF14YtVDeZRQxPoH2YtyvxBevDW2Cw2qY99yIQlI23j2EuMMDF UkGhgKlzV8Qm5/pX/qH7LYDdPw9iv9vAEjk5WuES4Xi1jFW0j+nVMswSByDsVvO0odMg NMTohfe8hiEw4lNrkr/2Bi/glHk79Jbi+GFicX+7c9X158HaSbzQYuPJQJh/wX0SgVkR 2uvNIy4vf0/sFKA8iUr3GUHeSzPMWAWBR/e8E5Nn+ZJRo84uyx1fXW8xuu25Hl5h3Eu7 aWJKuehA4RKRzttVjpv2StwCtvUkh2PQumurxx3mKgYU6l3VMA9gqOSpkXfD+b2lpJoR +A== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhf8adw5p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 18:08:29 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AHfI01013703; Fri, 10 Feb 2023 18:08:28 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2103.outbound.protection.outlook.com [104.47.55.103]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtajxns-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 18:08:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OUD3FrQG6GTbO78fPbWsGAOrUCIIdVMz8HD8WrBdCsWC04771lAhK3XAU9akkdV2k19wuaraP+tiNKmtnxb8cWtb/u3+0uKMjpdA3yiLlgkWrS22xrwQOzgjpio+tz2zUu/R19K0Mg7Q4bmoCWC6U7CcDOWli2nOQuHYObPnjP8WRCRKi9wuWAPiu93ZFv7W6dHB+S+hrrx1TpqK/kmPeE23dG/w9mE2OT/a0VlXW39Mo++Z6JeS4sbjA7rkPfj+igjmirbEmwgKqgsEmwoy1kCc+ndQts/BPlWhS5Kf4oCEXoAS/r3nWkXCwekMoEwijbTCTTqp9eUJ97M2uOtEvQ== 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=aTq8qAxwo+vyrgT3BEPdy4OT85Y4c0ZSnWaBs/R1fWk=; b=C0lrre2m782YJ6zNeu9DNhK6y0HYSi23zzKF0mPo4TtLQxWzbB3qy3lKYSfrZHzy4GtQlRo12x1Akvb1YCBxiOGe9oy51C7PMyXosF6ZHBgKjygBHsVOYSAEfz9By5mEHazBdkDkY357TQktPFD2Pl6UfcbgLa0dpUAC0fRRsQLqx89Zk7THhXLar265wIAnxRouGkbV02ARhvBrMsrOMW4Z8ZeZ8nIw66FlQDYnuD8RaojZY33GeRh9oEZSyceoGZjYV+PpL7yqFvTRk2ovVTkihnOvYadrF5gBLZmi69J1SCI9FCLa6tL5/4WTKUupVlw+/6q2JsOhv6ebpuHkIA== 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=aTq8qAxwo+vyrgT3BEPdy4OT85Y4c0ZSnWaBs/R1fWk=; b=T6qRc+mPG/tV7fKarymfHZh7ZIppM/7nUcnOOqTgRmdIc9EnKNTaDFkECLRakAO4cqffmhZuLfSceGbiTFcQU4ogYVS0/CfMMnsyUEQy1gL4iE8cDjKjgTrYrNka4Rmviyb1Ggoz9VkGa776nhM/nghpE3zDP++USa//Xx89fds= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by DM4PR10MB6741.namprd10.prod.outlook.com (2603:10b6:8:10f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.11; Fri, 10 Feb 2023 18:08:25 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d%5]) with mapi id 15.20.6086.019; Fri, 10 Feb 2023 18:08:25 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo , Philipp Zabel , linux-pci@vger.kernel.org Subject: [PATCH 7/8] kbuild, PCI: dwc: histb: comment out MODULE_LICENSE in non-modules Date: Fri, 10 Feb 2023 16:47:48 +0000 Message-Id: <20230210164749.368998-8-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230210164749.368998-1-nick.alcock@oracle.com> References: <20230210164749.368998-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO4P123CA0691.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:37b::19) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|DM4PR10MB6741:EE_ X-MS-Office365-Filtering-Correlation-Id: f5a69e9d-6f53-4133-e517-08db0b91cdbd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IpAEFG+u5NoOJe4eEoXiG4GbAuDAefY2BpoUTU5CsASX6ZZ0/6Puljx1qb1eQAn0dVJ71AimGx9tudNulzhEGY6qINi3cVJ0FTyR36bKYTP/ZdN4Ni6MX1sMsFkkFlWBRVRlRhsSyg3Jtjr5rBgwARLpsNJnA2NJns0F/o2jl397GYr2zMuzS9oZORZSJ1CWgUK8+SeGadvrreQGUHRtKx7EDoO+b02Fjk3739ers2x84kkFQllQW8akPV7vskvMRS8QNNKT3I9jPNVKIDj4pbwI1R7KggUmBkhg+f/PL1YsZ9TnWpVabLqdk5V3FMJfyQhNc5ZAl+eoRhGWqxjnwHTSrEOvGl8LDWNWcVPOl6+/teOLrZ9JV+v5CoQa5UpeQqaX+Eda3PgXbFs3nD5Ol08+rCjMiPAiHOkP5blTLEsKD59nBEl1ovCTfYkG/DPUlj2ehhYQz9OTa4V6GsWDCAkUn/f80PazOf0Casuqz7UvfMcI7C+yL9+x4Ac+mbRx5Z3KGFx6SGFNl60pZKL1GDYzv6N0FNauzAYy/iYvPVJOiluQghBhmYMfLC2U2F3oniKlWfGNB9RkwNxnblL0CJS+2Wb1/JKGFsRuaI/CiJzBoNW//Zkuqz92oADVzDSnJidUe5ZwQBF+FsuApY+FOg== 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)(366004)(396003)(346002)(39860400002)(376002)(136003)(451199018)(38100700002)(26005)(41300700001)(6666004)(186003)(6512007)(2906002)(83380400001)(8936002)(6486002)(44832011)(2616005)(316002)(478600001)(4326008)(66946007)(6916009)(8676002)(66556008)(86362001)(66476007)(36756003)(6506007)(1076003)(54906003)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yhETCZCSTdILZXsywPy7+3jBYiX2DWe8o4n/15i3Q9ubpaJOhkZ2yiJjIOL3/W861T/lo9IeLzyiCkLhdZLaDcivKNirL53y5C0nTTQw5hzaga5+M7yd++ymf7005hYopO25iOqgvn2zeGiMuRyuPjnkAn4UISMzDUy/7vm99/tkjfTlRoU+0ltQKjG+lzseP7LLFtFG1r/m7KGUlTM8gSVCZdBrvlHgCGdliSiNwz8pRzYskSuiuqPWpMpOSA6gpunWg/RJ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Ozr6YR8r3MEkw3wURxARKr6C/2RyXDMo1q8SW8xx2Gib0ITrW4G0br4E2cRfJR037fEnCLzhjq1DOglpJv1oqv6GolPuLuQWAl0NRVhwtClTPxDG5P5HKDMClkGwZLHjgddheaB+gszoTHVMYcdk= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5a69e9d-6f53-4133-e517-08db0b91cdbd X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 18:08:25.4401 (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: Y6CqtSYeKlxGPJIkcp2hOQHpCXi20rPiBmuWJsyHEG7bmd4jb7GkbLFtb4s/kfI7d1zgL/uS5HjqENdgkLZTsQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB6741 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-10_13,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100152 X-Proofpoint-ORIG-GUID: nKDQ2Od64x_PukIP_lCYESZjI0hclh2Q X-Proofpoint-GUID: nKDQ2Od64x_PukIP_lCYESZjI0hclh2Q 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 comment out all uses of MODULE_LICENSE that are not in real modules (the license declaration is left in as documentation). 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: Shawn Guo Cc: Philipp Zabel Cc: linux-pci@vger.kernel.org --- drivers/pci/controller/dwc/pcie-histb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-histb.c b/drivers/pci/controller/dwc/pcie-histb.c index 43c27812dd6d..11be36852033 100644 --- a/drivers/pci/controller/dwc/pcie-histb.c +++ b/drivers/pci/controller/dwc/pcie-histb.c @@ -450,4 +450,4 @@ static struct platform_driver histb_pcie_platform_driver = { module_platform_driver(histb_pcie_platform_driver); MODULE_DESCRIPTION("HiSilicon STB PCIe host controller driver"); -MODULE_LICENSE("GPL v2"); +/* MODULE_LICENSE("GPL v2"); */ From patchwork Fri Feb 10 16:47:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Alcock X-Patchwork-Id: 13136091 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 72F23C636CD for ; Fri, 10 Feb 2023 18:17:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232697AbjBJSRt (ORCPT ); Fri, 10 Feb 2023 13:17:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232822AbjBJSRs (ORCPT ); Fri, 10 Feb 2023 13:17:48 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0D4C5B77D; Fri, 10 Feb 2023 10:17:35 -0800 (PST) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AHwkAQ001642; Fri, 10 Feb 2023 18:17:26 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=4xPP9APE6e5bJLR8BAjUNrSn3FMcWmQb1c2kHqtPy6A=; b=DwD37JOPSpT+P9MEIyY0bgVGSmGGIDHpciM8e/Uja+elK9F3iEdkezKDdqmmkqUXiehB ZxHyPL/x2NdWnPVUSmGHn1L1tXIc9WPWMqv1R+ZsRXegcw3r/3HIa/cv/uHRUYZZhjkI gm8zPT5k9LIwYAkSpNsWLKykV/gyRjXkKNYiCXIf9zXdpgfZy+TaBv3CyB69tIADC/+/ xDyfdBaPk7oqCy7Nwlf5d1mH9olwnw347MdcSArAE11QvRLF8uFrY8ZndpoDeDvMHpUF 0uGh8a4Hj+b7DFsZ8+Jfmd5urVOStliAI+r/5ZWTeKa9jvK6/W+3diQ2VVXOve6xAYkA QA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhfdcp0sy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 18:17:26 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AH8U30013685; Fri, 10 Feb 2023 18:17:25 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2103.outbound.protection.outlook.com [104.47.70.103]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtak9vc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 18:17:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N6Xqs6OQNcW8j9N/mtH9KOiwQvj/0AmsvqRbxS5VC2NPxnJ9FQ/76hv+XRMOH1b232v/Vwm3kQgnPfwockVbBMwbOb1gYXuEG1/v5Ujy98xmbTD0/psDaiENiI925gmbOSWKGc+qlmfxCKmBKJJyU8Wd9qeTZsh5dtJ2XIL5uBVa2dlI0QHWK0XIKz1HMmOTKo1/QFynL+gSR0QWeJyFhvGHS5/x6fq+Eak4njpDh/7862Q5fLvyY1xmnG5OcIBoMTI0IOHOsat6ARDi9Cyf4M/iohHLs599U17fvsJ1t63qXpXOopXPfjUjYoFngzkCXA1BfwK/kogdSlB/zMw/Yw== 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=4xPP9APE6e5bJLR8BAjUNrSn3FMcWmQb1c2kHqtPy6A=; b=OhRGqsrjV2Dft7ODYkMkGSSjyb4D6GRmba/jAmClVtPAbu92FbmLsW0mcYwFbq4tS0XoDIjeqRRJ5F30uyl5UhhGwfcMe0+1rL5zvznQfs+B49vDJa0Be6fnOWEisvBjCU7ODBk+VYn39TJWzlWm+Y0WFKhTwtyzUsemnwByU7BBUTYxGrwx7q94DF/3eHJS7CbMWmHaDnA54BX52ERblKS4lbXgK7Ly4V4NOwogcTJw0i6YJY53icOo+Xk3e6083+V4BpXwm9E/knhUG/n8ESGcA8i8dWT1ft9HDpkLEN5Uu4TLPziNNNBy4JoEd6fGU1O4FDPk4PoT/Z3fZI+mpQ== 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=4xPP9APE6e5bJLR8BAjUNrSn3FMcWmQb1c2kHqtPy6A=; b=UpmQC/TCUd5JbfahWi7DDj5PsLWXx0Aad5se2sqqLE7OnbrUNIx0U8UDuXoZqjbCOvhwmZvRp+sfUox/hXkZSLLCRTCgYeqSnFVp84pgtP3vjltaTozwqw0IO2pd8WhDSIf13yvCYU88wL8NOkTyBu2pEaRgO4aaxsqD7tJltTk= Received: from DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) by SA2PR10MB4697.namprd10.prod.outlook.com (2603:10b6:806:112::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.16; Fri, 10 Feb 2023 18:17:23 +0000 Received: from DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d]) by DS0PR10MB6798.namprd10.prod.outlook.com ([fe80::b30f:e3aa:6ba:5c8d%5]) with mapi id 15.20.6086.019; Fri, 10 Feb 2023 18:17:23 +0000 From: Nick Alcock To: mcgrof@kernel.org Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 8/8] kbuild, PCI: microchip: comment out MODULE_LICENSE in non-modules Date: Fri, 10 Feb 2023 16:47:49 +0000 Message-Id: <20230210164749.368998-9-nick.alcock@oracle.com> X-Mailer: git-send-email 2.39.1.268.g9de2f9a303 In-Reply-To: <20230210164749.368998-1-nick.alcock@oracle.com> References: <20230210164749.368998-1-nick.alcock@oracle.com> X-ClientProxiedBy: LO4P123CA0178.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18a::21) To DS0PR10MB6798.namprd10.prod.outlook.com (2603:10b6:8:13c::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR10MB6798:EE_|SA2PR10MB4697:EE_ X-MS-Office365-Filtering-Correlation-Id: e41f12da-5625-4b0f-333a-08db0b930e25 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v7EU6r3QAqTAqLoH70dOHOQbJPMbjWwpkj0ucgrKYrn20Ykx8pU+qF80f97M1MMljmyiJL7cNvFXzcOVojv7Ck00S8N65hOBwPd1bAY78j501POX8h8w5+odsgwA7F232K/oyIg0wmZYpfI95m3JS63ajkHtXQnJixjMErob4m8TWAo8KtHd/dzPzYBvdvarBchSPujVgaEiYqp5fZuqKzFOXgRl9kj4WAVHBlc+xVTPNpCBPcU89otngxcRhmWb3/QsP2KRZYfi2IGH1Cki37FgVwazhORgye+dOxPHW7OYmqqNcrRDUXl+rSXqX+dxfJ0N9PI7jEdssVKWuUEIuqFbplGKi1Mu9oYcFkWPnLpMLeLmA7nItpYUzfCz4HSfYjmf9QGcHcNl1tgHoz61WO/IwNE93L6Hj5KT1Az/q02l9pRhdtSV6xEn7aevTF9OUTvgLSZ9llvcQ8Z8VsMpfadsbyTPjDSHZ5U7oE07PpJk97JF7BSqkxkafuYXRmeZWPngAuf/Xlt2+LkGdf8FpR1JlFt7LYeaqNrRudH2ZMgQ7Sm+UadWhWkaM7wfQ8boqvBhGBtuc5PygH9InrE4l8v8RyNAQa3kGdnpYHMfDN5I5bzaUYpV4T2L1Z0bTHL+gO5uQdyf2oY8mzXRerDN7w== 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)(346002)(376002)(396003)(39860400002)(366004)(451199018)(36756003)(83380400001)(5660300002)(66946007)(66556008)(44832011)(6916009)(66476007)(4326008)(8936002)(2906002)(86362001)(316002)(41300700001)(8676002)(38100700002)(1076003)(6666004)(2616005)(26005)(186003)(6486002)(478600001)(6506007)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bK01zFtrPKAzfZjOybFdgMQ/4Q0oo7UvzVs+1SWn8clPOqp3n+WYyMAaUsBvAA1yady2NtFFJjh9HhfC4C0Gtrz1LGsaSocebOEKwB43tAw2kjsnSWusvcsRQrj5nbnawNXvs4b7bEm+gvcMfkyZVAys+PmmbEHK8HMjKwToXjkYmZYTh/+Ib4mVd7nBMUcCrSqIsof/DxmGjqK5p6euC/vINjnfCH/yNJVf30eAPjHL4oC++h+GFUUcO6lbkQ8DBZRD9h+Vy6slwz2qQwoJAkwu9F2zkFk+tcYo2O3OCv59gzvGKpJbzimV/iJqtt+UQfQj477iSk+e9xJMYRfw896peerf8eeAG4YFxa/mhm3YTv1jm5XJ3DimSb+S2n5eOBw2enhKP4iAfv+l20uS7l/Oukn9G9iqVEUc75K9n4muVzNyuv5YVhd9Af2+HtElsVAfAAgNzbS7+obeB+BJyszMzYtZMHhMAKlB2J0KiEW1PYZB1HPPNfFYlHFHKL7VDBzvIWhT+W449eRfuA6W6KuV7FWrcDdhJf/7oT+lVlu3xUZpT3dlraJu0CxREXRTi54LAi8PZMk5h5pV9Q5JodhEU/w7VAiJXIA9mltLbqNkuzjOhVP03N5p+UjDV/v7wC57L/gqO+efZTijUy5xyRL7dGf5OHUtIM4QEaGLgM3ER9kGgRTDm4xdJ8g8k7EVRxRCxKi9ArEBhHak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++JQcJFrSGVxdDyZf7i1LPzM26TjWHAzd5KDu5scMVpx3DqnVQncTjTP66Av47+oiCixi3RMgtn9cfp2bQJ5CX1z8ZoTuqd53UuW5GUcff8RCzAqV3kAOKNPri3mwblHEaz/UqEEjA0NBg7Ynu1lEXIOkRoNPlgrGALaCGbtVRtNFZVRxfyQcOFQeHG6EQXySeaew4Gr7XN/HlVSWdS3oYz2gsLLIt4vjvJlXpMoe83+U9UIOzgHeVskarSorwiLUyBskj1oc4LhCNTUB3ltK0Lph/0/YDUUmahTcnIAdQq/9Mib8KAtiTwG8QuViijgoQY33/ZZ5nKFQyTSzY4HkMHlZhTJBDMIsZtAW8li5YFsnlyb9Mbtf3o4t8gY142NNMQx/6f7oVjjTYRa5Mb5eJGbtAoJHWyYrhQqw3sLUsxu7mkFi8SVesGU3KXk6tfhWTDnT4wD98WoWHOdhTdaow8wbKLWK/hc1q8pqBYVbu1r4eSk3pTrt6mUy0hw7BVykqo4ZzXJSgM7K6Rn59J+QsChGD313UmF0uLUpMAFAQ7wmJUBxfuicIIgeQsM/L3193XHJAVxWYuXF6t85WPeo/kp3zbaUXcq9os9SyKGkb8tjKHq4GQlM2Mvdsvr77Dk0BY8mYWpinQ2LNCpIRtrsPnuGUSEbE/llR5BbxfdS1cAME3+VqwshvT9H58/kGwRBfEsb/yIv4/7/ZHEoXEcilZz0Mx/TGQglHU53vDOoIApJLRBUv3Fc7G+qwLC3veh8UzarQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e41f12da-5625-4b0f-333a-08db0b930e25 X-MS-Exchange-CrossTenant-AuthSource: DS0PR10MB6798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 18:17:22.9724 (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: jkCvspMoaW7bpOt500tNUMHuWhCAB5yPnOwoFjz/a+MmOlgYPi+ZgjJjbP/WPVj9e6TCCrvRf73DStiQjHQB8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4697 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-10_13,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100152 X-Proofpoint-GUID: 12wjfv7-ObPTnjI3vyd1tYHUYRlhLLQR X-Proofpoint-ORIG-GUID: 12wjfv7-ObPTnjI3vyd1tYHUYRlhLLQR 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 comment out all uses of MODULE_LICENSE that are not in real modules (the license declaration is left in as documentation). 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: linux-pci@vger.kernel.org Cc: linux-riscv@lists.infradead.org --- drivers/pci/controller/pcie-microchip-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-microchip-host.c b/drivers/pci/controller/pcie-microchip-host.c index 0ebf7015e9af..08c0b778ce67 100644 --- a/drivers/pci/controller/pcie-microchip-host.c +++ b/drivers/pci/controller/pcie-microchip-host.c @@ -1135,6 +1135,6 @@ static struct platform_driver mc_pcie_driver = { }; builtin_platform_driver(mc_pcie_driver); -MODULE_LICENSE("GPL"); +/* MODULE_LICENSE("GPL"); */ MODULE_DESCRIPTION("Microchip PCIe host controller driver"); MODULE_AUTHOR("Daire McNamara ");