net: airoha: Fix MODULE_LICENSE to match SPDX GPL-2.0-only identifier
Subsystems (4)
PATCH 1/1 net: airoha: Fix MODULE_LICENSE to match SPDX GPL-2.0-only identifier
Both airoha_eth.c and airoha_npu.c declare SPDX-License-Identifier:
GPL-2.0-only but use MODULE_LICENSE("GPL"), which the kernel module loader interprets as GPL-2.0+ (any GPL version). This mismatch causes license compliance tools (FOSSology, ScanCode, etc.) to misidentify the effective license as more permissive than intended.
Replace MODULE_LICENSE("GPL") with MODULE_LICENSE("GPL v2") to align with the GPL-2.0-only SPDX identifier. Per include/linux/module.h, "GPL v2" maps to GPL-2.0-only, matching the source files' declared license.
--- drivers/net/ethernet/airoha/airoha_eth.c | 2 +- drivers/net/ethernet/airoha/airoha_npu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/airoha/airoha_eth.c +1 -1
@@ -3333,6 +3333,6 @@ static struct platform_driver airoha_driver = { };module_platform_driver (airoha_driver); -MODULE_LICENSE ("GPL" ); +MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Lorenzo Bianconi <[email protected]>" );MODULE_DESCRIPTION ("Ethernet driver for Airoha SoC" );
drivers/net/ethernet/airoha/airoha_npu.c +1 -1
@@ -826,6 +826,6 @@ MODULE_FIRMWARE(NPU_EN7581_7996_FIRMWARE_DATA);MODULE_FIRMWARE (NPU_EN7581_7996_FIRMWARE_RV32 );MODULE_FIRMWARE (NPU_AN7583_FIRMWARE_DATA );MODULE_FIRMWARE (NPU_AN7583_FIRMWARE_RV32 ); -MODULE_LICENSE ("GPL" ); +MODULE_LICENSE ("GPL v2" );MODULE_AUTHOR ("Lorenzo Bianconi <[email protected]>" );MODULE_DESCRIPTION ("Airoha Network Processor Unit driver" );
Signature · 1 line
2.51.0
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 6 lines · On Sun, 14 Jun 2026 07:52:39 +0800 you wrote:
Both
airoha_eth.candairoha_npu.cdeclare SPDX-License-Identifier:
GPL-2.0-only but useMODULE_LICENSE("GPL"), which the kernel module loader interprets as GPL-2.0+ (any GPL version). This mismatch causes license compliance tools (FOSSology, ScanCode, etc.) to misidentify the effective license as more permissive than intended.
Quoted 6 lines
Replace
MODULE_LICENSE("GPL")withMODULE_LICENSE("GPL v2")to align with the GPL-2.0-only SPDX identifier. Perinclude/linux/module.h, "GPL v2" maps to GPL-2.0-only, matching the source files' declared license.[...]
Here is the summary with links:
- net: airoha: Fix MODULE_LICENSE to match SPDX GPL-2.0-only identifier
https://git.kernel.org/netdev/net-next/c/b0d62ed16424
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Quoted 17 lines · On Mon, Jun 15, 2026 at 11:00:08PM +0000, [email protected]…
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 11 lines · On Sun, 14 Jun 2026 07:52:39 +0800 you wrote:
Both
airoha_eth.candairoha_npu.cdeclare SPDX-License-Identifier:
GPL-2.0-only but useMODULE_LICENSE("GPL"), which the kernel module loader interprets as GPL-2.0+ (any GPL version). This mismatch causes license compliance tools (FOSSology, ScanCode, etc.) to misidentify the effective license as more permissive than intended.Replace
MODULE_LICENSE("GPL")withMODULE_LICENSE("GPL v2")to align with the GPL-2.0-only SPDX identifier. Perinclude/linux/module.h, "GPL v2" maps to GPL-2.0-only, matching the source files' declared license.
Quoted 5 lines
Quoted 1 line
[...]
Here is the summary with links:
- net: airoha: FixMODULE_LICENSEto match SPDX GPL-2.0-only identifierhttps://git.kernel.org/netdev/net-next/c/b0d62ed16424
Jakub,
This patch doesn't fix anything. License rules are pretty clear.
Documentation/process/license-rules.rst
444 "GPL" Module is licensed under GPL version 2. This 445 does not express any distinction between 446 GPL-2.0-only or GPL-2.0-or-later. The exact 447 license information can only be determined 448 via the license information in the 449 corresponding source files.
450
451 "GPL v2" Same as "GPL". It exists for historic
452 reasons.
Quoted 8 lines
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html