mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-15 22:41:38 +00:00
perf parse-events: Remove array remnants
parse_events_array was set up by event term parsing, which no longer exists. Remove this struct and references to it. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Eduard Zingerman <eddyz87@gmail.com> Cc: He Kuang <hekuang@huawei.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rob Herring <robh@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Cc: Wang ShaoBo <bobo.shaobowang@huawei.com> Cc: YueHaibing <yuehaibing@huawei.com> Cc: bpf@vger.kernel.org Link: https://lore.kernel.org/r/20230728001212.457900-4-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
30f4ade33d
commit
c9b57eb8dc
@@ -2716,9 +2716,6 @@ int parse_events_term__clone(struct parse_events_term **new,
|
||||
|
||||
void parse_events_term__delete(struct parse_events_term *term)
|
||||
{
|
||||
if (term->array.nr_ranges)
|
||||
zfree(&term->array.ranges);
|
||||
|
||||
if (term->type_val != PARSE_EVENTS__TERM_TYPE_NUM)
|
||||
zfree(&term->val.str);
|
||||
|
||||
@@ -2769,11 +2766,6 @@ void parse_events_terms__delete(struct list_head *terms)
|
||||
free(terms);
|
||||
}
|
||||
|
||||
void parse_events__clear_array(struct parse_events_array *a)
|
||||
{
|
||||
zfree(&a->ranges);
|
||||
}
|
||||
|
||||
void parse_events_evlist_error(struct parse_events_state *parse_state,
|
||||
int idx, const char *str)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user