projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd3fba
)
modpost: turn missing MODULE_LICENSE() into error
author
Masahiro Yamada
<masahiroy@kernel.org>
Tue, 1 Dec 2020 10:34:16 +0000
(19:34 +0900)
committer
Masahiro Yamada
<masahiroy@kernel.org>
Mon, 21 Dec 2020 04:57:08 +0000
(13:57 +0900)
Do not create modules with no license tag.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c
patch
|
blob
|
history
diff --git
a/scripts/mod/modpost.c
b/scripts/mod/modpost.c
index 43e00867623a54e5856013654167a3ef74597d0e..d55d7e5ef1110c44d0e39f96dffca52cc0419162 100644
(file)
--- 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;