perf genelf: Fix NO_LIBDW=1 build
authorIan Rogers <irogers@google.com>
Wed, 2 Jul 2025 17:54:02 +0000 (10:54 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 3 Jul 2025 02:01:54 +0000 (19:01 -0700)
commitd4ae1620c6209661ced9244d058f3582d1847dca
tree731bc5b00a1eca38b3adf28d6a4c476e87ff950f
parent508b228942b291cb69f11027c07ca17ab2ac03bc
perf genelf: Fix NO_LIBDW=1 build

With NO_LIBDW=1 a new unused-parameter warning/error has appeared:
```
util/genelf.c: In function ‘jit_write_elf’:
util/genelf.c:163:32: error: unused parameter ‘load_addr’ [-Werror=unused-parameter]
  163 | jit_write_elf(int fd, uint64_t load_addr, const char *sym,
```

Fixes: e3f612c1d8f3 ("perf genelf: Remove libcrypto dependency and use built-in sha1()")
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20250702175402.761818-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/genelf.c