RE: [EXT] Re: [PATCH 1/2] cpufreq: dt-platdev: Add MODULE_LICENSE

From: Zhipeng Wang
Date: Wed May 24 2023 - 07:32:32 EST


I am working on enabling support for Google's Generic Kernel Image (GKI) project on our boards (mek_8qxp and 8qm).
The cpufreq-dt driver already supports modularity, and the cpufreq-dt-platdev is also required. From my understanding, cpufreq-dt-platdev is not necessarily required to be built in, as it does not affect the basic boot process. Therefore, I would like to make it support building as a module.

BRs,
Zhipeng

> -----Original Message-----
> From: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
> Sent: 2023年5月24日 18:45
> To: Zhipeng Wang <zhipeng.wang_1@xxxxxxx>
> Cc: rafael@xxxxxxxxxx; linux-pm@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: [EXT] Re: [PATCH 1/2] cpufreq: dt-platdev: Add MODULE_LICENSE
>
> Caution: This is an external email. Please take care when clicking links or
> opening attachments. When in doubt, report the message using the 'Report
> this email' button
>
>
> On 24-05-23, 15:34, Zhipeng Wang wrote:
> > Add MODULE_LICENSE to support building as module.
> >
> > Signed-off-by: Zhipeng Wang <zhipeng.wang_1@xxxxxxx>
> > ---
> > drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c
> > b/drivers/cpufreq/cpufreq-dt-platdev.c
> > index 338cf6cc6596..54529aa16d53 100644
> > --- a/drivers/cpufreq/cpufreq-dt-platdev.c
> > +++ b/drivers/cpufreq/cpufreq-dt-platdev.c
> > @@ -214,3 +214,4 @@ static int __init cpufreq_dt_platdev_init(void)
> > sizeof(struct
> > cpufreq_dt_platform_data))); }
> > core_initcall(cpufreq_dt_platdev_init);
> > +MODULE_LICENSE("GPL");
>
> Any specific reason why you need this as a module ? Just curious.
>
> --
> viresh