diff mbox series

clk: imx: clk-gate-93: fix build error with x86_64 allmodconfig

Message ID 20220906024047.1840977-1-peng.fan@oss.nxp.com (mailing list archive)
State Awaiting Upstream, archived
Headers show
Series clk: imx: clk-gate-93: fix build error with x86_64 allmodconfig | expand

Commit Message

Peng Fan (OSS) Sept. 6, 2022, 2:40 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>

When building with x86_64 allmodconfig:
ERROR: modpost: missing MODULE_LICENSE() in drivers/clk/imx/clk-gate-93.o

Fix it with 'mxc-clk-objs += clk-gate-93.o'

Fixes: 4e9331d4e2e0 ("clk: imx: add i.MX93 clk gate")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/clk/imx/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Abel Vesa Sept. 6, 2022, 12:17 p.m. UTC | #1
On 22-09-06 10:40:47, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> When building with x86_64 allmodconfig:
> ERROR: modpost: missing MODULE_LICENSE() in drivers/clk/imx/clk-gate-93.o
> 
> Fix it with 'mxc-clk-objs += clk-gate-93.o'
> 
> Fixes: 4e9331d4e2e0 ("clk: imx: add i.MX93 clk gate")
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Hi Peng,

Since the commit this patch fixes is just in my tree for now,
I squahed in the mentioned commit.

So, it is applied.

Thanks!

> ---
>  drivers/clk/imx/Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile
> index 89fe72327788..e8aacb0ee6ac 100644
> --- a/drivers/clk/imx/Makefile
> +++ b/drivers/clk/imx/Makefile
> @@ -12,6 +12,7 @@ mxc-clk-objs += clk-fixup-div.o
>  mxc-clk-objs += clk-fixup-mux.o
>  mxc-clk-objs += clk-frac-pll.o
>  mxc-clk-objs += clk-gate2.o
> +mxc-clk-objs += clk-gate-93.o
>  mxc-clk-objs += clk-gate-exclusive.o
>  mxc-clk-objs += clk-pfd.o
>  mxc-clk-objs += clk-pfdv2.o
> @@ -28,7 +29,7 @@ obj-$(CONFIG_CLK_IMX8MN) += clk-imx8mn.o
>  obj-$(CONFIG_CLK_IMX8MP) += clk-imx8mp.o
>  obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
>  
> -obj-$(CONFIG_CLK_IMX93) += clk-imx93.o clk-gate-93.o
> +obj-$(CONFIG_CLK_IMX93) += clk-imx93.o
>  
>  obj-$(CONFIG_MXC_CLK_SCU) += clk-imx-scu.o clk-imx-lpcg-scu.o
>  clk-imx-scu-$(CONFIG_CLK_IMX8QXP) += clk-scu.o clk-imx8qxp.o \
> -- 
> 2.37.1
>
Peng Fan (OSS) Sept. 7, 2022, 5:04 a.m. UTC | #2
Abel,

On 9/6/2022 8:17 PM, Abel Vesa wrote:
> On 22-09-06 10:40:47, Peng Fan (OSS) wrote:
>> From: Peng Fan <peng.fan@nxp.com>
>>
>> When building with x86_64 allmodconfig:
>> ERROR: modpost: missing MODULE_LICENSE() in drivers/clk/imx/clk-gate-93.o
>>
>> Fix it with 'mxc-clk-objs += clk-gate-93.o'
>>
>> Fixes: 4e9331d4e2e0 ("clk: imx: add i.MX93 clk gate")
>> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> 
> Hi Peng,
> 
> Since the commit this patch fixes is just in my tree for now,
> I squahed in the mentioned commit.
> 

Sure. Thanks for helping on it.

Thanks,
Peng.

> So, it is applied.
> 
> Thanks!
> 
>> ---
>>   drivers/clk/imx/Makefile | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile
>> index 89fe72327788..e8aacb0ee6ac 100644
>> --- a/drivers/clk/imx/Makefile
>> +++ b/drivers/clk/imx/Makefile
>> @@ -12,6 +12,7 @@ mxc-clk-objs += clk-fixup-div.o
>>   mxc-clk-objs += clk-fixup-mux.o
>>   mxc-clk-objs += clk-frac-pll.o
>>   mxc-clk-objs += clk-gate2.o
>> +mxc-clk-objs += clk-gate-93.o
>>   mxc-clk-objs += clk-gate-exclusive.o
>>   mxc-clk-objs += clk-pfd.o
>>   mxc-clk-objs += clk-pfdv2.o
>> @@ -28,7 +29,7 @@ obj-$(CONFIG_CLK_IMX8MN) += clk-imx8mn.o
>>   obj-$(CONFIG_CLK_IMX8MP) += clk-imx8mp.o
>>   obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
>>   
>> -obj-$(CONFIG_CLK_IMX93) += clk-imx93.o clk-gate-93.o
>> +obj-$(CONFIG_CLK_IMX93) += clk-imx93.o
>>   
>>   obj-$(CONFIG_MXC_CLK_SCU) += clk-imx-scu.o clk-imx-lpcg-scu.o
>>   clk-imx-scu-$(CONFIG_CLK_IMX8QXP) += clk-scu.o clk-imx8qxp.o \
>> -- 
>> 2.37.1
>>
diff mbox series

Patch

diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile
index 89fe72327788..e8aacb0ee6ac 100644
--- a/drivers/clk/imx/Makefile
+++ b/drivers/clk/imx/Makefile
@@ -12,6 +12,7 @@  mxc-clk-objs += clk-fixup-div.o
 mxc-clk-objs += clk-fixup-mux.o
 mxc-clk-objs += clk-frac-pll.o
 mxc-clk-objs += clk-gate2.o
+mxc-clk-objs += clk-gate-93.o
 mxc-clk-objs += clk-gate-exclusive.o
 mxc-clk-objs += clk-pfd.o
 mxc-clk-objs += clk-pfdv2.o
@@ -28,7 +29,7 @@  obj-$(CONFIG_CLK_IMX8MN) += clk-imx8mn.o
 obj-$(CONFIG_CLK_IMX8MP) += clk-imx8mp.o
 obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o
 
-obj-$(CONFIG_CLK_IMX93) += clk-imx93.o clk-gate-93.o
+obj-$(CONFIG_CLK_IMX93) += clk-imx93.o
 
 obj-$(CONFIG_MXC_CLK_SCU) += clk-imx-scu.o clk-imx-lpcg-scu.o
 clk-imx-scu-$(CONFIG_CLK_IMX8QXP) += clk-scu.o clk-imx8qxp.o \