mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
UPSTREAM: modpost: turn missing MODULE_LICENSE() into error
Do not create modules with no license tag.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Bug: 176428324
Change-Id: Iab31389b56545baa6d54c59b7ff2fc72c6c1876e
(cherry picked from commit 1d6cd39293)
Signed-off-by: Melody Olvera <molvera@codeaurora.org>
This commit is contained in:
parent
ba0f642827
commit
1731b01108
|
|
@ -2015,7 +2015,7 @@ static void read_symbols(const char *modname)
|
|||
if (!mod->is_vmlinux) {
|
||||
license = get_modinfo(&info, "license");
|
||||
if (!license)
|
||||
warn("missing MODULE_LICENSE() in %s\n", modname);
|
||||
error("missing MODULE_LICENSE() in %s\n", modname);
|
||||
while (license) {
|
||||
if (license_is_gpl_compatible(license))
|
||||
mod->gpl_compatible = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user