modpost: do not warn about missing MODULE_DESCRIPTION() for vmlinux.o
PATCH 1/1 modpost: do not warn about missing MODULE_DESCRIPTION() for vmlinux.o
Building with W=1 incorrectly emits the following warning:
WARNING: modpost: missing MODULE_DESCRIPTION() in vmlinux.o
This check should apply only to modules.
Fixes 1fffe7a34c89 ("script: modpost: emit a warning when the description is missing")
Signed-off-by Masahiro Yamada <[email protected]>
---
scripts/mod/modpost.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
scripts/mod/modpost.c +3 -2
@@ -1647,10 +1647,11 @@ static void read_symbols(const char *modname) namespace =get_next_modinfo (&info,"import_ns" , namespace); } + +if (extra_warn && !get_modinfo (&info,"description" )) +warn ("missing MODULE_DESCRIPTION() in %s\n" , 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);
Signature · 1 line
2.43.0
LGMT, thanks
Reviewed-by Vincenzo Palazzo <[email protected]>
Quoted 35 lines · Masahiro Yamada
Building with W=1 incorrectly emits the following warning:
WARNING: modpost: missing
MODULE_DESCRIPTION()in vmlinux.oThis check should apply only to modules.
Fixes 1fffe7a34c89 ("script: modpost: emit a warning when the description is missing")Signed-off-by Masahiro Yamada <[email protected]>---
scripts/mod/modpost.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)scripts/mod/modpost.c +3
-3@@ -1647,10 +1647,11 @@ static void read_symbols(const char *modname) namespace =get_next_modinfo (&info,"import_ns" , namespace); } + +if (extra_warn && !get_modinfo (&info,"description" )) +warn ("missing MODULE_DESCRIPTION() in %s\n" , 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); --2.43.0