Re: [PATCH] perf annotate: Fix build with NO_SLANG=1

From: Namhyung Kim

Date: Tue Oct 21 2025 - 20:39:17 EST


On Tue, 21 Oct 2025 12:07:50 +0900, Namhyung Kim wrote:
> The recent change for perf c2c annotate broke build without slang
> support like below.
>
> builtin-annotate.c: In function 'hists__find_annotations':
> builtin-annotate.c:522:73: error: 'NO_ADDR' undeclared (first use in this function); did you mean 'NR_ADDR'?
> 522 | key = hist_entry__tui_annotate(he, evsel, NULL, NO_ADDR);
> | ^~~~~~~
> | NR_ADDR
> builtin-annotate.c:522:73: note: each undeclared identifier is reported only once for each function it appears in
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung