[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 15/17] xen: remove MODULE_LICENSE in non-modules


  • To: mcgrof@xxxxxxxxxx
  • From: Nick Alcock <nick.alcock@xxxxxxxxxx>
  • Date: Thu, 2 Mar 2023 21:17:57 +0000
  • 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
  • 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=40wA+FlFLr6ElM+W+qIHS/HRTtxmamDt21e9O30ct2Q=; b=SZowJv7sOC1sDKZKGqOeUWd1DflyIgrjzXgi0e7N7J2STcBAGLTVf3r/RQh13vpGR+N3anoIuwyUEzVzf1+c72ZXJSlPg15hN3AU03Gyo01QWrEvkZKQxg3crujoiQTv/EqttnRbHelCq3kUD5N26BuXPoMMAFgMW80haUFeNIQi9PZXAm33EZCdjjHZZKL3xYDEBV1Y2iONJHwAtqWywRjGTQV1RdcHUtDszjRSUXbKCCq9pWss+lwPi7ZfaA+cXprVVuGyWUCyfWO65ddR8zhsHctOy/ezLo2j13+ryaTKJGXwF7NXnHgi1g/qp7kOkiC6fJKQg35PXSMIIo3nZQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fdEQ7FCuVJtUL6MJ9OFIMT9OpvDjMg5nBiYcy435z8ZzQQ1/cc1UIYbxMbuwliwCq7nAfQobjk2v/phqlTdsPbCefFiYiTLCuY0zAuHDsGuzaNh7mGfirbvDo/p3D9JRO4f1mr53CyTOapEIDBCpX+dMSCY/J+ruqHLtbbO+7w/bDkhGyuloUni3kbABFkG5JRWnjC0XWHWqc5TWD22VVeOvi3SHxku9G5yVtDwZf84Z6/qXSblbDvu+b/b3xNaM6RqcFgqYwOoNOy2OZoA4Zzn8eX8BiUejKR+2oU9juVQ0etJVAnqPjvnkSq+gXiCI40fhvwB30PEpFjXQu3a4pg==
  • Cc: linux-modules@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Hitomi Hasegawa <hasegawa-hitomi@xxxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 04 Mar 2023 22:01:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Since commit 8b41fc4454e ("kbuild: create modules.builtin without
Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations
are used to identify modules. As a consequence, uses of the macro
in non-modules will cause modprobe to misidentify their containing
object file as a module when it is not (false positives), and modprobe
might succeed rather than failing with a suitable error message.

So remove it in the files in this commit, none of which can be built as
modules.

Signed-off-by: Nick Alcock <nick.alcock@xxxxxxxxxx>
Suggested-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
Cc: Luis Chamberlain <mcgrof@xxxxxxxxxx>
Cc: linux-modules@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: Hitomi Hasegawa <hasegawa-hitomi@xxxxxxxxxxx>
Cc: Juergen Gross <jgross@xxxxxxxx>
Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
---
 drivers/xen/grant-dma-ops.c       | 1 -
 drivers/xen/xenbus/xenbus_probe.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/xen/grant-dma-ops.c b/drivers/xen/grant-dma-ops.c
index 9784a77fa3c99..ca0249fc4d18f 100644
--- a/drivers/xen/grant-dma-ops.c
+++ b/drivers/xen/grant-dma-ops.c
@@ -413,4 +413,3 @@ bool xen_virtio_restricted_mem_acc(struct virtio_device 
*dev)
 
 MODULE_DESCRIPTION("Xen grant DMA-mapping layer");
 MODULE_AUTHOR("Juergen Gross <jgross@xxxxxxxx>");
-MODULE_LICENSE("GPL");
diff --git a/drivers/xen/xenbus/xenbus_probe.c 
b/drivers/xen/xenbus/xenbus_probe.c
index 58b732dcbfb83..86c04f239e873 100644
--- a/drivers/xen/xenbus/xenbus_probe.c
+++ b/drivers/xen/xenbus/xenbus_probe.c
@@ -1066,4 +1066,3 @@ static int __init xenbus_init(void)
 
 postcore_initcall(xenbus_init);
 
-MODULE_LICENSE("GPL");
-- 
2.39.1.268.g9de2f9a303




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.