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

Configure Feed

Select the types of activity you want to include in your feed.

clocksource: 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: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>

authored by

Nick Alcock and committed by
Luis Chamberlain
5ba4b11a 1e64f2a7

-5
-1
drivers/clocksource/em_sti.c
··· 363 363 364 364 MODULE_AUTHOR("Magnus Damm"); 365 365 MODULE_DESCRIPTION("Renesas Emma Mobile STI Timer Driver"); 366 - MODULE_LICENSE("GPL v2");
-1
drivers/clocksource/sh_cmt.c
··· 1174 1174 1175 1175 MODULE_AUTHOR("Magnus Damm"); 1176 1176 MODULE_DESCRIPTION("SuperH CMT Timer Driver"); 1177 - MODULE_LICENSE("GPL v2");
-1
drivers/clocksource/sh_mtu2.c
··· 530 530 531 531 MODULE_AUTHOR("Magnus Damm"); 532 532 MODULE_DESCRIPTION("SuperH MTU2 Timer Driver"); 533 - MODULE_LICENSE("GPL v2");
-1
drivers/clocksource/sh_tmu.c
··· 674 674 675 675 MODULE_AUTHOR("Magnus Damm"); 676 676 MODULE_DESCRIPTION("SuperH TMU Timer Driver"); 677 - MODULE_LICENSE("GPL v2");
-1
drivers/clocksource/timer-ti-dm.c
··· 1283 1283 module_platform_driver(omap_dm_timer_driver); 1284 1284 1285 1285 MODULE_DESCRIPTION("OMAP Dual-Mode Timer Driver"); 1286 - MODULE_LICENSE("GPL"); 1287 1286 MODULE_AUTHOR("Texas Instruments Inc");