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"); */