From 044a70ac6241b0cd5a4da98cb697499a7a4e2a03 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Mon, 20 May 2024 20:31:28 +0100 Subject: [PATCH] drivers: Fix dummy module license The correct module license string for drivers is "GPL" and not "GPL V2". Note that "GPL" in the module license indicates GPLv2 according to the kernel documentation. Using "GPL V2" causes the following kernel warns to be printed when the module is loaded ... r8168: module license 'GPL V2' taints kernel. Disabling lock debugging due to kernel taint r8168: module license taints kernel. Fix this by correcting the license string for dummy drivers. Bug 4606591 Bug 4471899 Change-Id: Ib785b2d3c90234e279cb1d804bf9a9842e6e5084 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3141628 GVS: buildbot_gerritrpt --- drivers/crypto/tegra/tegra-se-kds.c | 8 +++----- drivers/net/ethernet/realtek/r8168/r8168_dummy.c | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/crypto/tegra/tegra-se-kds.c b/drivers/crypto/tegra/tegra-se-kds.c index e6539d16..1949060d 100644 --- a/drivers/crypto/tegra/tegra-se-kds.c +++ b/drivers/crypto/tegra/tegra-se-kds.c @@ -1,7 +1,5 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. - */ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include @@ -14,4 +12,4 @@ device_initcall(tegra_se_kds_dummy_init); MODULE_AUTHOR("Laxman Dewangan "); MODULE_DESCRIPTION("Dummy Tegra SE KDS driver"); -MODULE_LICENSE("GPL V2"); +MODULE_LICENSE("GPL"); diff --git a/drivers/net/ethernet/realtek/r8168/r8168_dummy.c b/drivers/net/ethernet/realtek/r8168/r8168_dummy.c index 6322d418..79feac4b 100644 --- a/drivers/net/ethernet/realtek/r8168/r8168_dummy.c +++ b/drivers/net/ethernet/realtek/r8168/r8168_dummy.c @@ -1,7 +1,5 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. - */ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include @@ -14,4 +12,4 @@ device_initcall(r8168_dummy_dummy_init); MODULE_AUTHOR("Laxman Dewangan "); MODULE_DESCRIPTION("Dummy R8168 dummy driver"); -MODULE_LICENSE("GPL V2"); +MODULE_LICENSE("GPL");