Skip to content

Commit e63b066

Browse files
nickalcockkrzk
authored andcommitted
memory: tegra: 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: Hitomi Hasegawa <hasegawa-hitomi@fujitsu.com> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Jonathan Hunter <jonathanh@nvidia.com> Link: https://lore.kernel.org/r/20230308202117.426808-1-nick.alcock@oracle.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent fe15c26 commit e63b066

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/memory/tegra/mc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,4 +985,3 @@ arch_initcall(tegra_mc_init);
985985

986986
MODULE_AUTHOR("Thierry Reding <treding@nvidia.com>");
987987
MODULE_DESCRIPTION("NVIDIA Tegra Memory Controller driver");
988-
MODULE_LICENSE("GPL v2");

drivers/memory/tegra/tegra186-emc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,3 @@ module_platform_driver(tegra186_emc_driver);
280280

281281
MODULE_AUTHOR("Thierry Reding <treding@nvidia.com>");
282282
MODULE_DESCRIPTION("NVIDIA Tegra186 External Memory Controller driver");
283-
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)