From: Jiri Olsa Date: Sat, 4 Aug 2018 13:05:03 +0000 (+0200) Subject: perf annotate: Make annotation_line__max_percent static X-Git-Tag: v5.15~8094^2~1^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ecf7d30eb4f9c046f5284f20133d7b69729c315;p=platform%2Fkernel%2Flinux-starfive.git perf annotate: Make annotation_line__max_percent static There's no outside user of it. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/20180804130521.11408-3-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index b6e7d0d..956c9b1 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -2441,7 +2441,8 @@ bool ui__has_annotation(void) } -double annotation_line__max_percent(struct annotation_line *al, struct annotation *notes) +static double annotation_line__max_percent(struct annotation_line *al, + struct annotation *notes) { double percent_max = 0.0; int i; diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index 5f24fc9..a93502d 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h @@ -169,7 +169,6 @@ struct annotation_write_ops { void (*write_graph)(void *obj, int graph); }; -double annotation_line__max_percent(struct annotation_line *al, struct annotation *notes); void annotation_line__write(struct annotation_line *al, struct annotation *notes, struct annotation_write_ops *ops);