mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
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: Roland Kletzing <[email protected]> Link: https://bugzilla.kernel.org/show_bug.cgi?id=10770 Signed-off-by: Vincenzo Palazzo <[email protected]> Tested-by: Nicolas Schier <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
This commit is contained in:
1 parent
8ae071fc21
commit
1fffe7a34c
1 file changed
+2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user