mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 13:30:45 -05:00
perf script: Fix build by removing unused evsel_script()
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: 3622990efa ("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>
This commit is contained in:
committed by
Namhyung Kim
parent
c1932fb85a
commit
86ce2a29dd
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user