mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
modpost: do not warn about missing MODULE_DESCRIPTION() for vmlinux.o
[ Upstream commit9185afeac2] 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:1fffe7a34c("script: modpost: emit a warning when the description is missing") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8404eabc78
commit
6d33e77ae4
@@ -1652,10 +1652,11 @@ static void read_symbols(const char *modname)
|
|||||||
namespace = get_next_modinfo(&info, "import_ns",
|
namespace = get_next_modinfo(&info, "import_ns",
|
||||||
namespace);
|
namespace);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (extra_warn && !get_modinfo(&info, "description"))
|
if (extra_warn && !get_modinfo(&info, "description"))
|
||||||
warn("missing MODULE_DESCRIPTION() in %s\n", modname);
|
warn("missing MODULE_DESCRIPTION() in %s\n", modname);
|
||||||
|
}
|
||||||
|
|
||||||
for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {
|
for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {
|
||||||
symname = remove_dot(info.strtab + sym->st_name);
|
symname = remove_dot(info.strtab + sym->st_name);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user