Commit 1d6cd392 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

modpost: turn missing MODULE_LICENSE() into error



Do not create modules with no license tag.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 0fd3fbad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;