]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf script: Fix build by removing unused evsel_script()
authorJames Clark <james.clark@linaro.org>
Fri, 14 Nov 2025 14:06:18 +0000 (14:06 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Sat, 15 Nov 2025 17:44:04 +0000 (09:44 -0800)
The evsel_script() function is unused since the linked commit. Fix the
build by removing it.

Fixes the following compilation error:

  static inline struct evsel_script *evsel_script(struct evsel *evsel)
                                     ^

builtin-script.c:347:36: error: unused function 'evsel_script' [-Werror,-Wunused-function]
Fixes: 3622990efaab ("perf script: Change metric format to use json metrics")
Signed-off-by: James Clark <james.clark@linaro.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-script.c

index 3ac6b80c460eb77de0081cb42f395037af192430..011962e1ee0f6898de3c3114fdd3f2e33433d1d7 100644 (file)
@@ -344,11 +344,6 @@ struct evsel_script {
        u64  samples;
 };
 
-static inline struct evsel_script *evsel_script(struct evsel *evsel)
-{
-       return (struct evsel_script *)evsel->priv;
-}
-
 static struct evsel_script *evsel_script__new(struct evsel *evsel, struct perf_data *data)
 {
        struct evsel_script *es = zalloc(sizeof(*es));