mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cxl/region: Add module license declaration to cxl region module source code
@ 2024-05-20 19:29 nifan.cxl
  2024-05-21 15:25 ` Ira Weiny
  0 siblings, 1 reply; 3+ messages in thread
From: nifan.cxl @ 2024-05-20 19:29 UTC (permalink / raw)
  To: dave.jiang, alison.schofield, vishal.l.verma, ira.weiny,
	dan.j.williams, Jonathan.Cameron
  Cc: linux-cxl, a.manzanares, dave, linux-kernel, nifan.cxl, Fan Ni

From: Fan Ni <fan.ni@samsung.com>

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.

Signed-off-by: Fan Ni <fan.ni@samsung.com>
---
 drivers/cxl/core/region.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c
index 5c186e0a39b9..e299ddcbd1a2 100644
--- a/drivers/cxl/core/region.c
+++ b/drivers/cxl/core/region.c
@@ -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");
-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] cxl/region: Add module license declaration to cxl region module source code
  2024-05-20 19:29 [PATCH] cxl/region: Add module license declaration to cxl region module source code nifan.cxl
@ 2024-05-21 15:25 ` Ira Weiny
  2024-05-21 16:35   ` Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Ira Weiny @ 2024-05-21 15:25 UTC (permalink / raw)
  To: nifan.cxl, dave.jiang, alison.schofield, vishal.l.verma,
	ira.weiny, dan.j.williams, Jonathan.Cameron
  Cc: linux-cxl, a.manzanares, dave, linux-kernel, nifan.cxl, Fan Ni

nifan.cxl@ wrote:
> From: Fan Ni <fan.ni@samsung.com>
> 
> 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

> 
> Signed-off-by: Fan Ni <fan.ni@samsung.com>
> ---
>  drivers/cxl/core/region.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c
> index 5c186e0a39b9..e299ddcbd1a2 100644
> --- a/drivers/cxl/core/region.c
> +++ b/drivers/cxl/core/region.c
> @@ -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");
> -- 
> 2.43.0
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] cxl/region: Add module license declaration to cxl region module source code
  2024-05-21 15:25 ` Ira Weiny
@ 2024-05-21 16:35   ` Dan Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Williams @ 2024-05-21 16:35 UTC (permalink / raw)
  To: Ira Weiny, nifan.cxl, dave.jiang, alison.schofield,
	vishal.l.verma, dan.j.williams, Jonathan.Cameron
  Cc: linux-cxl, a.manzanares, dave, linux-kernel, nifan.cxl, Fan Ni

Ira Weiny wrote:
> nifan.cxl@ wrote:
> > From: Fan Ni <fan.ni@samsung.com>
> > 
> > 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-21 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-20 19:29 [PATCH] cxl/region: Add module license declaration to cxl region module source code nifan.cxl
2024-05-21 15:25 ` Ira Weiny
2024-05-21 16:35   ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®