summaryrefslogtreecommitdiff
path: root/scripts/mod
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-12-01 19:34:16 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-12-21 13:57:08 +0900
commit1d6cd39293602e990b016994e51956eded35da7c (patch)
tree09b8268d501c362ebb8c01c13d346e3c31eddcfc /scripts/mod
parent0fd3fbadd9a85e391828f3ef63ef1e96e2d2d752 (diff)
modpost: turn missing MODULE_LICENSE() into error
Do not create modules with no license tag. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 43e00867623a..d55d7e5ef111 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -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;