mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
modpost: turn missing MODULE_LICENSE() into error
Do not create modules with no license tag. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
0fd3fbadd9
commit
1d6cd39293
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue