diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index b808716e5b50..7ef250bf1af2 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -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;