Re: [PATCH] cxl/region: Add module license declaration to cxl region module source code

From: Dan Williams
Date: Tue May 21 2024 - 12:35:29 EST


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