From 1edca2655284d96897ae15ef9555e2c588105796 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_entry_from_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 8fd144b..f757a17 100644 --- a/pahole.c +++ b/pahole.c @@ -1477,7 +1477,7 @@ static const char *enumerations__lookup_value(struct list_head *enumerations, ui return NULL; } -static struct enumerator *enumeration__lookup_entry_from_value(struct type *enumeration, struct cu *cu, uint64_t value) +static struct enumerator *enumeration__lookup_entry_from_value(struct type *enumeration, uint64_t value) { struct enumerator *entry; @@ -1494,7 +1494,7 @@ static struct enumerator *enumerations__lookup_entry_from_value(struct list_head struct tag_cu_node *pos; list_for_each_entry(pos, enumerations, node) { - struct enumerator *enumerator = enumeration__lookup_entry_from_value(tag__type(pos->tc.tag), pos->tc.cu, value); + struct enumerator *enumerator = enumeration__lookup_entry_from_value(tag__type(pos->tc.tag), value); if (enumerator) { *cup = pos->tc.cu; return enumerator;