Skip to content

Commit 1d6cd39

Browse files
committed
modpost: turn missing MODULE_LICENSE() into error
Do not create modules with no license tag. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 0fd3fba commit 1d6cd39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/mod/modpost.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,7 @@ static void read_symbols(const char *modname)
20182018
if (!mod->is_vmlinux) {
20192019
license = get_modinfo(&info, "license");
20202020
if (!license)
2021-
warn("missing MODULE_LICENSE() in %s\n", modname);
2021+
error("missing MODULE_LICENSE() in %s\n", modname);
20222022
while (license) {
20232023
if (license_is_gpl_compatible(license))
20242024
mod->gpl_compatible = 1;

0 commit comments

Comments
 (0)