]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf jitdump: Constify variables storing the result of strchr() on const tables
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 04:15:47 +0000 (01:15 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 05:36:24 +0000 (02:36 -0300)
As newer glibcs will propagate the const attribute of the searched table
to its return.

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

index d4fe35f9d9a5f6f576eef9dc9ff3c6e91adec22f..e0ce8b904729836291764274fe27f30d68a901b8 100644 (file)
@@ -758,7 +758,7 @@ jit_inject(struct jit_buf_desc *jd, const char *path)
 static int
 jit_detect(const char *mmap_name, pid_t pid, struct nsinfo *nsi, bool *in_pidns)
  {
-       char *p;
+       const char *p;
        char *end = NULL;
        pid_t pid2;