]> git.ipfire.org Git - thirdparty/linux.git/commit
perf session: Don't write to memory pointed to a const pointer
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 05:09:37 +0000 (02:09 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 05:09:37 +0000 (02:09 -0300)
commitf1321cce848c558fde4c0c6bcd5e53f3cefd3af2
treea8c35160e381ce1ba70b10c0b3711e9f418eef9f
parent678ed6b707e4b2db250f255d2f959322896dae65
perf session: Don't write to memory pointed to a const pointer

Since it is freshly allocated just attribute it to a non-const pointer
and then change it via that pointer.

That way we avoid const-correctness warnings in recent glibc versions.

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