Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

modpost: require a MODULE_DESCRIPTION()

Since commit 1fffe7a34c89 ("script: modpost: emit a warning when the
description is missing"), a module without a MODULE_DESCRIPTION() has
resulted in a warning with make W=1. Since that time, all known
instances of this issue have been fixed. Therefore, now make it an
error if a MODULE_DESCRIPTION() is not present.

Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Jeff Johnson and committed by
Masahiro Yamada
6c6c1fc0 cacd22ce

+2 -2
+2 -2
scripts/mod/modpost.c
··· 1602 1602 namespace); 1603 1603 } 1604 1604 1605 - if (extra_warn && !get_modinfo(&info, "description")) 1606 - warn("missing MODULE_DESCRIPTION() in %s\n", modname); 1605 + if (!get_modinfo(&info, "description")) 1606 + error("missing MODULE_DESCRIPTION() in %s\n", modname); 1607 1607 } 1608 1608 1609 1609 for (sym = info.symtab_start; sym < info.symtab_stop; sym++) {