summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2026-01-27 07:15:47 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-01-27 08:36:24 +0300
commit68abacb0686651dd3f0bbce2fa94b438afeb2fc4 (patch)
tree56e0fcdea57a143b37a15573199de10be22835b4
parent8bf093acb3f1f07d846c86e32308f9f9954ed579 (diff)
downloadlinux-68abacb0686651dd3f0bbce2fa94b438afeb2fc4.tar.xz
perf jitdump: Constify variables storing the result of strchr() on const tables
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>
-rw-r--r--tools/perf/util/jitdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c
index d4fe35f9d9a5..e0ce8b904729 100644
--- a/tools/perf/util/jitdump.c
+++ b/tools/perf/util/jitdump.c
@@ -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;