mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
modpost: turn missing MODULE_LICENSE() into error
Do not create modules with no license tag. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
0fd3fbadd9
commit
1d6cd39293
@ -2018,7 +2018,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