kconfig: don't emit warning upon rootmenu's prompt redefinition
[cascardo/linux.git] / scripts / kconfig / menu.c
index 682045a..23acbdb 100644 (file)
@@ -139,7 +139,7 @@ struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *e
                        while (isspace(*prompt))
                                prompt++;
                }
-               if (current_entry->prompt)
+               if (current_entry->prompt && current_entry != &rootmenu)
                        prop_warn(prop, "prompt redefined");
                current_entry->prompt = prop;
        }