]> git.ipfire.org Git - thirdparty/linux.git/commit
perf tp_pmu: Address const-correctness errors in recent glibcs
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 05:22:00 +0000 (02:22 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 05:22:00 +0000 (02:22 -0300)
commit0341eab66ba03a1f439db91f03bccd5b0a360842
tree935140efa81fa2613aea63091e45172dc51d36e3
parent0e47251e8cc438d5b59fcd86d27efade01976fe1
perf tp_pmu: Address const-correctness errors in recent glibcs

To avoid having more variables, just cast the const variable searched to
non-const since the result will not be modified, its only later that
that variable will be used to modify something, but then its non-const
memory being modified, so using a cast is the cheapest thing here.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/tp_pmu.c