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

kbuild, clk: remove MODULE_LICENSE in non-modules

Since commit 8b41fc4454e ("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>

authored by

Nick Alcock and committed by
Stephen Boyd
94511ebc 9d941b8a

-4
-1
drivers/clk/clk-fixed-mmio.c
··· 99 99 100 100 MODULE_AUTHOR("Jan Kotas <jank@cadence.com>"); 101 101 MODULE_DESCRIPTION("Memory Mapped IO Fixed clock driver"); 102 - MODULE_LICENSE("GPL v2");
-1
drivers/clk/clk-fsl-sai.c
··· 88 88 89 89 MODULE_DESCRIPTION("Freescale SAI bitclock-as-a-clock driver"); 90 90 MODULE_AUTHOR("Michael Walle <michael@walle.cc>"); 91 - MODULE_LICENSE("GPL"); 92 91 MODULE_ALIAS("platform:fsl-sai-clk");
-1
drivers/clk/hisilicon/clk-hi3559a.c
··· 841 841 module_exit(hi3559av100_crg_exit); 842 842 843 843 844 - MODULE_LICENSE("GPL v2"); 845 844 MODULE_DESCRIPTION("HiSilicon Hi3559AV100 CRG Driver");
-1
drivers/clk/microchip/clk-mpfs-ccc.c
··· 291 291 292 292 MODULE_DESCRIPTION("Microchip PolarFire SoC Clock Conditioning Circuitry Driver"); 293 293 MODULE_AUTHOR("Conor Dooley <conor.dooley@microchip.com>"); 294 - MODULE_LICENSE("GPL");