Building with W=1 incorrectly emits the following warning: WARNING: modpost: missing MODULE_DESCRIPTION() in vmlinux.o This check should apply only to modules.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -1647,10 +1647,11 @@ static void read_symbols(const char *modname) · 1646 unmodified lines | ||
| 1647 | 1647 | namespace = get_next_modinfo(&info, "import_ns", |
| 1648 | 1648 | namespace); |
| 1649 | 1649 | } |
| 1650 | + | |
| 1651 | + if (extra_warn && !get_modinfo(&info, "description")) | |
| 1652 | + warn("missing MODULE_DESCRIPTION() in %s\n", modname); | |
| 1650 | 1653 | } |
| 1651 | 1654 | |
| 1652 | − if (extra_warn && !get_modinfo(&info, "description")) | |
| 1653 | − warn("missing MODULE_DESCRIPTION() in %s\n", modname); | |
| 1654 | 1655 | for (sym = info.symtab_start; sym < info.symtab_stop; sym++) { |
| 1655 | 1656 | symname = remove_dot(info.strtab + sym->st_name); |
| 1656 | 1657 | |