From e18c60d793935ab661aea83cbcad678e69c348e7 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Fri, 25 Jun 2021 09:56:00 -0300 Subject: [PATCH] pahole: enumeration__lookup_value() doesn't need a 'cu' argument With the conversion of ->name members to plain char strings, no need to use 'cu' to get the old string_t index and find the per-cu string table. Signed-off-by: Arnaldo Carvalho de Melo --- pahole.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pahole.c b/pahole.c index 32cf3b9..8fd144b 100644 --- a/pahole.c +++ b/pahole.c @@ -1452,7 +1452,7 @@ static int class_member__fprintf_bitfield_value(struct class_member *member, voi return fprintf(fp, format, class_member__bitfield_value(member, instance)); } -static const char *enumeration__lookup_value(struct type *enumeration, struct cu *cu, uint64_t value) +static const char *enumeration__lookup_value(struct type *enumeration, uint64_t value) { struct enumerator *entry; @@ -1469,7 +1469,7 @@ static const char *enumerations__lookup_value(struct list_head *enumerations, ui struct tag_cu_node *pos; list_for_each_entry(pos, enumerations, node) { - const char *s = enumeration__lookup_value(tag__type(pos->tc.tag), pos->tc.cu, value); + const char *s = enumeration__lookup_value(tag__type(pos->tc.tag), value); if (s) return s; }