diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index db5fbd8ac686f8d5eeac792434ea2abcdb1163c4..d2964c68f0668f92b8fa119eb1fc399872dc4742 100644 --- a/scripts/kconfig/zconf.y +++ b/scripts/kconfig/zconf.y @@ -431,6 +431,11 @@ help_start: T_HELP T_EOL help: help_start T_HELPTEXT { + if (current_entry->help) { + free(current_entry->help); + zconfprint("warning: '%s' defined with more than one help text -- only the last one will be used", + current_entry->sym->name ?: ""); + } current_entry->help = $2; };