Skip to content

Commit

Permalink
modpost: turn missing MODULE_LICENSE() into error
Browse files Browse the repository at this point in the history
Do not create modules with no license tag.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Dec 21, 2020
1 parent 0fd3fba commit 1d6cd39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1d6cd39

Please sign in to comment.