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 <nick.alcock@oracle.com> Suggested-by: Luis Chamberlain <mcgrof@kernel.org> Cc: Luis Chamberlain <mcgrof@kernel.org> Cc: linux-modules@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: Hitomi Hasegawa <hasegawa-hitomi@fujitsu.com> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Stephen Boyd <sboyd@kernel.org> Cc: linux-clk@vger.kernel.org Link: https://lore.kernel.org/r/20230222121453.91915-13-nick.alcock@oracle.com Acked-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 9d941b8 commit 94511eb

4 files changed

Lines changed: 0 additions & 4 deletions

File tree

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 <jank@cadence.com>");
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 <michael@walle.cc>");
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 <conor.dooley@microchip.com>");
294-
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)