Skip to contentSkip to conversation

cxl/region: Add module license declaration to cxl region module source code

PATCH In review [email protected] 3 participants 3 messages May 20, 2024 – May 21, 2024 CXL

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cxl/region: Add module license declaration to cxl region module source code

From: Fan Ni <[email protected]>

This change explicitly specifies the licensing terms for the CXL region module as GPL v2. This commit does not introduce any functional changes to the behavior or functionality of the CXL region module. It solely adds the MODULE_LICENSE declaration to the module source file.

---
 drivers/cxl/core/region.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cxl/core/region.c +1 -0
index 5c186e0a39b9..e299ddcbd1a2 100644
@@ -3204,3 +3204,4 @@ void cxl_region_exit(void)
 MODULE_IMPORT_NS(CXL);
 MODULE_IMPORT_NS(DEVMEM);
 MODULE_ALIAS_CXL(CXL_DEVICE_REGION);
+MODULE_LICENSE("GPL v2");
Signature · 1 line
2.43.0
#1 lore raw
Quoted 6 lines · nifan.cxl@ wrote:

From: Fan Ni <[email protected]>

This change explicitly specifies the licensing terms for the CXL region module as GPL v2. This commit does not introduce any functional changes to the behavior or functionality of the CXL region module. It solely adds the MODULE_LICENSE declaration to the module source file.

Why is this needed? The region code is added to cxl_core when built and that module already reports the correct module license.

10:24:55 > modinfo cxl_core | grep lic
license: GPL v2

Ira

Quoted 18 lines
---
 drivers/cxl/core/region.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cxl/core/region.c +1 -0
index 5c186e0a39b9..e299ddcbd1a2 100644
@@ -3204,3 +3204,4 @@ void cxl_region_exit(void)
 MODULE_IMPORT_NS(CXL);
 MODULE_IMPORT_NS(DEVMEM);
 MODULE_ALIAS_CXL(CXL_DEVICE_REGION);
+MODULE_LICENSE("GPL v2");
Signature · 1 line
2.43.0
#2 lore raw
Quoted 10 lines · Ira Weiny
Quoted 6 lines · nifan.cxl@ wrote:

From: Fan Ni <[email protected]>

This change explicitly specifies the licensing terms for the CXL region module as GPL v2. This commit does not introduce any functional changes to the behavior or functionality of the CXL region module. It solely adds the MODULE_LICENSE declaration to the module source file.

Why is this needed? The region code is added to cxl_core when built and that module already reports the correct module license.

Right, and region.c has:

// SPDX-License-Identifier: GPL-2.0-only