script: modpost: emit a warning when the description is missing
PATCH v3 1/1 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.
Based on top: https://patchwork.kernel.org/project/linux-kbuild/patch/[email protected]/
Reported-by Roland Kletzing <[email protected]>
Signed-off-by Vincenzo Palazzo <[email protected]>
--- scripts/mod/modpost.c | 4 ++++ 1 file changed, 4 insertions(+)
scripts/mod/modpost.c +4 -0
@@ -1818,6 +1818,10 @@ static void read_symbols(const char *modname) } } +#ifdef WARN +if (extra_warn && !get_modinfo (&info,"description" )) +warn ("missing MODULE_DESCRIPTION() in %s\n" , modname); +#endif for (sym = info.symtab_start; sym < info.symtab_stop; sym++) { symname =remove_dot (info.strtab + sym->st_name);
Signature · 1 line
2.41.0