[PATCH perf-next 0/4] glibc str functions const return fixes

From: Arnaldo Carvalho de Melo

Date: Thu Dec 11 2025 - 17:18:04 EST


Hi,

While building with Fedora 44 I noticed so interesting warnings
about touching const memory, fix some of them in this series,

- Arnaldo

Arnaldo Carvalho de Melo (4):
perf list: Remove unused 'sep' variable
perf diff: Constify strchr() return variables
perf tools: Use const for variables receiving str{str,r?chr}() returns
perf trace: Don't change const char strings

tools/perf/builtin-diff.c | 12 +++++-------
tools/perf/builtin-list.c | 4 ++--
tools/perf/builtin-trace.c | 11 +++++++----
tools/perf/jvmti/libjvmti.c | 2 +-
tools/perf/tests/parse-events.c | 4 ++--
tools/perf/util/evlist.c | 3 ++-
6 files changed, 19 insertions(+), 17 deletions(-)

--
2.52.0