From 4b877c8e6762c42fe8a35a4c9d09ede207dadcd5 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_enumerator() 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 ee437a2..32cf3b9 100644 --- a/pahole.c +++ b/pahole.c @@ -1504,7 +1504,7 @@ static struct enumerator *enumerations__lookup_entry_from_value(struct list_head return NULL; } -static int64_t enumeration__lookup_enumerator(struct type *enumeration, struct cu *cu, const char *enumerator) +static int64_t enumeration__lookup_enumerator(struct type *enumeration, const char *enumerator) { struct enumerator *entry; @@ -1527,7 +1527,7 @@ static int64_t enumerations__lookup_enumerator(struct list_head *enumerations, c struct tag_cu_node *pos; list_for_each_entry(pos, enumerations, node) { - int64_t value = enumeration__lookup_enumerator(tag__type(pos->tc.tag), pos->tc.cu, enumerator); + int64_t value = enumeration__lookup_enumerator(tag__type(pos->tc.tag), enumerator); if (value != -1) return value; }