diff options
| author | 2024-07-08 00:38:05 +0900 | |
|---|---|---|
| committer | 2024-07-16 16:07:14 +0900 | |
| commit | 6425e3b247b1eff04c64091b2af8811d05546a86 (patch) | |
| tree | aadb6b23bb9ee5ac82ae0f9571aef7dd84df76f2 /scripts/kconfig/expr.c | |
| parent | kconfig: call expr_eliminate_yn() at least once in expr_eliminate_dups() (diff) | |
| download | wireguard-linux-6425e3b247b1eff04c64091b2af8811d05546a86.tar.xz wireguard-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.c | 4 |
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); } |
