Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: imx: fix compile testing imxrt1050

Randconfig testing revealed multiple issues with this driver:

ERROR: modpost: missing MODULE_LICENSE() in drivers/clk/imx/clk-imxrt1050.o
ERROR: modpost: "imx_clk_hw_pllv3" [drivers/clk/imx/clk-imxrt1050.ko] undefined!
ERROR: modpost: "imx_clk_hw_pfd" [drivers/clk/imx/clk-imxrt1050.ko] undefined!

Export the necessary symbols from the core clk driver and add the
license and author tags. To find this type of problem more easily
in the future, also enable building on other platforms, as we do for
the other i.MX clk drivers.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20221215165836.2136448-1-arnd@kernel.org
Acked-by: Jesse Taube <Mr.Bossman075@gmail.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Arnd Bergmann and committed by
Stephen Boyd
64ea30d1 f89ea8f9

+9 -1
+1 -1
drivers/clk/imx/Kconfig
··· 115 115 116 116 config CLK_IMXRT1050 117 117 tristate "IMXRT1050 CCM Clock Driver" 118 - depends on SOC_IMXRT 118 + depends on SOC_IMXRT || COMPILE_TEST 119 119 select MXC_CLK 120 120 help 121 121 Build the driver for i.MXRT1050 CCM Clock Driver
+4
drivers/clk/imx/clk-imxrt1050.c
··· 167 167 }, 168 168 }; 169 169 module_platform_driver(imxrt1050_clk_driver); 170 + 171 + MODULE_LICENSE("Dual BSD/GPL"); 172 + MODULE_AUTHOR("Jesse Taube <Mr.Bossman075@gmail.com>"); 173 + MODULE_AUTHOR("Giulio Benetti <giulio.benetti@benettiengineering.com>");
+2
drivers/clk/imx/clk-pfd.c
··· 5 5 */ 6 6 7 7 #include <linux/clk-provider.h> 8 + #include <linux/export.h> 8 9 #include <linux/io.h> 9 10 #include <linux/slab.h> 10 11 #include <linux/err.h> ··· 154 153 155 154 return hw; 156 155 } 156 + EXPORT_SYMBOL_GPL(imx_clk_hw_pfd);
+2
drivers/clk/imx/clk-pllv3.c
··· 6 6 7 7 #include <linux/clk-provider.h> 8 8 #include <linux/delay.h> 9 + #include <linux/export.h> 9 10 #include <linux/io.h> 10 11 #include <linux/iopoll.h> 11 12 #include <linux/slab.h> ··· 487 486 488 487 return hw; 489 488 } 489 + EXPORT_SYMBOL_GPL(imx_clk_hw_pllv3);