Skip to content

Commit d2456dd

Browse files
nickalcockkrzk
authored andcommitted
memory: 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: Hitomi Hasegawa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent e63b066 commit d2456dd

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

drivers/memory/bt1-l2-ctl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,3 @@ module_platform_driver(l2_ctl_driver);
321321

322322
MODULE_AUTHOR("Serge Semin <[email protected]>");
323323
MODULE_DESCRIPTION("Baikal-T1 L2-cache driver");
324-
MODULE_LICENSE("GPL v2");

drivers/memory/da8xx-ddrctl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,3 @@ module_platform_driver(da8xx_ddrctl_driver);
164164

165165
MODULE_AUTHOR("Bartosz Golaszewski <[email protected]>");
166166
MODULE_DESCRIPTION("TI da8xx DDR2/mDDR controller driver");
167-
MODULE_LICENSE("GPL v2");

drivers/memory/fsl_ifc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,5 @@ static int __init fsl_ifc_init(void)
327327
}
328328
subsys_initcall(fsl_ifc_init);
329329

330-
MODULE_LICENSE("GPL");
331330
MODULE_AUTHOR("Freescale Semiconductor");
332331
MODULE_DESCRIPTION("Freescale Integrated Flash Controller driver");

drivers/memory/mvebu-devbus.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,5 @@ static int __init mvebu_devbus_init(void)
341341
}
342342
module_init(mvebu_devbus_init);
343343

344-
MODULE_LICENSE("GPL v2");
345344
MODULE_AUTHOR("Ezequiel Garcia <[email protected]>");
346345
MODULE_DESCRIPTION("Marvell EBU SoC Device Bus controller");

0 commit comments

Comments
 (0)