Commit 1fffe7a3 authored by Vincenzo Palazzo's avatar Vincenzo Palazzo Committed by Masahiro Yamada

script: modpost: emit a warning when the description is missing

Emit a warning when the mod description is missed and only
when the W=1 is enabled.
Reported-by: default avatarRoland Kletzing <devzero@web.de>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=10770Signed-off-by: default avatarVincenzo Palazzo <vincenzopalazzodev@gmail.com>
Tested-by: default avatarNicolas Schier <n.schier@avm.de>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 8ae071fc
......@@ -1720,6 +1720,8 @@ static void read_symbols(const char *modname)
}
}
if (extra_warn && !get_modinfo(&info, "description"))
warn("missing MODULE_DESCRIPTION() in %s\n", modname);
for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {
symname = remove_dot(info.strtab + sym->st_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment