Skip to content

Commit 94511eb

Browse files
nickalcockbebarino
authored andcommitted
kbuild, clk: remove MODULE_LICENSE in non-modules
Since commit 8b41fc4 ("kbuild: create modules.builtin without Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations are used to identify modules. As a consequence, uses of the macro in non-modules will cause modprobe to misidentify their containing object file as a module when it is not (false positives), and modprobe might succeed rather than failing with a suitable error message. So remove it in the files in this commit, none of which can be built as modules. Signed-off-by: Nick Alcock <[email protected]> Suggested-by: Luis Chamberlain <[email protected]> Cc: Luis Chamberlain <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Hitomi Hasegawa <[email protected]> Cc: Michael Turquette <[email protected]> Cc: Stephen Boyd <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Acked-by: Conor Dooley <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 9d941b8 commit 94511eb

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

drivers/clk/clk-fixed-mmio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,3 @@ module_platform_driver(of_fixed_mmio_clk_driver);
9999

100100
MODULE_AUTHOR("Jan Kotas <[email protected]>");
101101
MODULE_DESCRIPTION("Memory Mapped IO Fixed clock driver");
102-
MODULE_LICENSE("GPL v2");

drivers/clk/clk-fsl-sai.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,4 @@ module_platform_driver(fsl_sai_clk_driver);
8888

8989
MODULE_DESCRIPTION("Freescale SAI bitclock-as-a-clock driver");
9090
MODULE_AUTHOR("Michael Walle <[email protected]>");
91-
MODULE_LICENSE("GPL");
9291
MODULE_ALIAS("platform:fsl-sai-clk");

drivers/clk/hisilicon/clk-hi3559a.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,5 +841,4 @@ static void __exit hi3559av100_crg_exit(void)
841841
module_exit(hi3559av100_crg_exit);
842842

843843

844-
MODULE_LICENSE("GPL v2");
845844
MODULE_DESCRIPTION("HiSilicon Hi3559AV100 CRG Driver");

drivers/clk/microchip/clk-mpfs-ccc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,3 @@ module_exit(clk_ccc_exit);
291291

292292
MODULE_DESCRIPTION("Microchip PolarFire SoC Clock Conditioning Circuitry Driver");
293293
MODULE_AUTHOR("Conor Dooley <[email protected]>");
294-
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)