Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf annotate: Remove unused len parameter from annotation_line__print()

It's not used anywhere, let's get rid of it.

Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250310224925.799005-3-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

+3 -6
+3 -6
tools/perf/util/annotate.c
··· 760 760 761 761 static int 762 762 annotation_line__print(struct annotation_line *al, struct symbol *sym, u64 start, 763 - struct evsel *evsel, u64 len, int min_pcnt, int printed, 763 + struct evsel *evsel, int min_pcnt, int printed, 764 764 int max_lines, struct annotation_line *queue, int addr_fmt_width, 765 765 int percent_type) 766 766 { ··· 796 796 list_for_each_entry_from(queue, &notes->src->source, node) { 797 797 if (queue == al) 798 798 break; 799 - annotation_line__print(queue, sym, start, evsel, len, 799 + annotation_line__print(queue, sym, start, evsel, 800 800 0, 0, 1, NULL, addr_fmt_width, 801 801 percent_type); 802 802 } ··· 1183 1183 int printed = 2, queue_len = 0, addr_fmt_width; 1184 1184 int more = 0; 1185 1185 bool context = opts->context; 1186 - u64 len; 1187 1186 int width = annotation__pcnt_width(notes); 1188 1187 int graph_dotted_len; 1189 1188 char buf[512]; ··· 1195 1196 d_filename = filename; 1196 1197 else 1197 1198 d_filename = basename(filename); 1198 - 1199 - len = symbol__size(sym); 1200 1199 1201 1200 if (evsel__is_group_event(evsel)) { 1202 1201 evsel__group_desc(evsel, buf, sizeof(buf)); ··· 1224 1227 queue_len = 0; 1225 1228 } 1226 1229 1227 - err = annotation_line__print(pos, sym, start, evsel, len, 1230 + err = annotation_line__print(pos, sym, start, evsel, 1228 1231 opts->min_pcnt, printed, opts->max_lines, 1229 1232 queue, addr_fmt_width, opts->percent_type); 1230 1233