]> git.ipfire.org Git - thirdparty/linux.git/commit
perf trace: Deal with compiler const checks
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Jan 2026 20:57:43 +0000 (17:57 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Jan 2026 23:49:59 +0000 (20:49 -0300)
commit2c850606a46b319d5128bda59f67b1fc642d94ef
treeb2ff618fe059268a0dc101d3621611fd3b742b64
parent01ea38942bdcd28a7962d49d6f3a602979b81009
perf trace: Deal with compiler const checks

The strchr() function these days return const/non-const based on the arg
it receives, and sometimes we need to use casts when we're dealing with
variables that are used in code that needs to safely change the returned
value and sometimes not (as it points to really const areas).

Tweak one such case.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c