提交 1d6cd392 编写于 作者: M Masahiro Yamada

modpost: turn missing MODULE_LICENSE() into error

Do not create modules with no license tag.
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 0fd3fbad
...@@ -2018,7 +2018,7 @@ static void read_symbols(const char *modname) ...@@ -2018,7 +2018,7 @@ static void read_symbols(const char *modname)
if (!mod->is_vmlinux) { if (!mod->is_vmlinux) {
license = get_modinfo(&info, "license"); license = get_modinfo(&info, "license");
if (!license) if (!license)
warn("missing MODULE_LICENSE() in %s\n", modname); error("missing MODULE_LICENSE() in %s\n", modname);
while (license) { while (license) {
if (license_is_gpl_compatible(license)) if (license_is_gpl_compatible(license))
mod->gpl_compatible = 1; mod->gpl_compatible = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册