···489489 *490490 * Return: -1 if an error is found, 0 otherwise.491491 */492492-static int choice_check_sanity(struct menu *menu)492492+static int choice_check_sanity(const struct menu *menu)493493{494494 struct property *prop;495495 int ret = 0;···644644 putc('"', out);645645}646646647647-static void print_symbol(FILE *out, struct menu *menu)647647+static void print_symbol(FILE *out, const struct menu *menu)648648{649649 struct symbol *sym = menu->sym;650650 struct property *prop;
+7-7
scripts/kconfig/symbol.c
···4040static tristate modules_val;4141static int sym_warnings;42424343-enum symbol_type sym_get_type(struct symbol *sym)4343+enum symbol_type sym_get_type(const struct symbol *sym)4444{4545 enum symbol_type type = sym->type;4646···7575 *7676 * Return: a choice menu if this function is called against a choice member.7777 */7878-struct menu *sym_get_choice_menu(struct symbol *sym)7878+struct menu *sym_get_choice_menu(const struct symbol *sym)7979{8080 struct menu *menu = NULL;8181 struct menu *m;···355355 return res;356356}357357358358-static void sym_warn_unmet_dep(struct symbol *sym)358358+static void sym_warn_unmet_dep(const struct symbol *sym)359359{360360 struct gstr gs = str_new();361361···521521 sym_calc_value(modules_sym);522522}523523524524-bool sym_tristate_within_range(struct symbol *sym, tristate val)524524+bool sym_tristate_within_range(const struct symbol *sym, tristate val)525525{526526 int type = sym_get_type(sym);527527···866866 return (const char *)sym->curr.val;867867}868868869869-bool sym_is_changeable(struct symbol *sym)869869+bool sym_is_changeable(const struct symbol *sym)870870{871871 return !sym_is_choice(sym) && sym->visible > sym->rev_dep.tri;872872}···11501150 dep_stack_remove();11511151}1152115211531153-static struct symbol *sym_check_expr_deps(struct expr *e)11531153+static struct symbol *sym_check_expr_deps(const struct expr *e)11541154{11551155 struct symbol *sym;11561156···13091309 return sym2;13101310}1311131113121312-struct symbol *prop_get_symbol(struct property *prop)13121312+struct symbol *prop_get_symbol(const struct property *prop)13131313{13141314 if (prop->expr && prop->expr->type == E_SYMBOL)13151315 return prop->expr->left.sym;
+1-1
scripts/kconfig/util.c
···9898}9999100100/* Retrieve value of growable string */101101-char *str_get(struct gstr *gs)101101+char *str_get(const struct gstr *gs)102102{103103 return gs->s;104104}