summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/expr.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-07-07 17:38:05 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-16 09:07:14 +0200
commit6425e3b247b1eff04c64091b2af8811d05546a86 (patch)
treeaadb6b23bb9ee5ac82ae0f9571aef7dd84df76f2 /scripts/kconfig/expr.c
parentkconfig: call expr_eliminate_yn() at least once in expr_eliminate_dups() (diff)
downloadlinux-6425e3b247b1eff04c64091b2af8811d05546a86.tar.xz
linux-6425e3b247b1eff04c64091b2af8811d05546a86.zip
kconfig: add const qualifiers to several function arguments
Clarify that the given structures are not modified. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/expr.c')
-rw-r--r--scripts/kconfig/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c
index b2dfd3123a5d..a85e0d603322 100644
--- a/scripts/kconfig/expr.c
+++ b/scripts/kconfig/expr.c
@@ -1096,7 +1096,7 @@ static int expr_compare_type(enum expr_type t1, enum expr_type t2)
return 0;
}
-void expr_print(struct expr *e,
+void expr_print(const struct expr *e,
void (*fn)(void *, struct symbol *, const char *),
void *data, int prevtoken)
{
@@ -1221,7 +1221,7 @@ static void expr_print_gstr_helper(void *data, struct symbol *sym, const char *s
str_printf(gs, " [=%s]", sym_str);
}
-void expr_gstr_print(struct expr *e, struct gstr *gs)
+void expr_gstr_print(const struct expr *e, struct gstr *gs)
{
expr_print(e, expr_print_gstr_helper, gs, E_NONE);
}