]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf list: Signal changing const memory is ok
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Jan 2026 21:26:44 +0000 (18:26 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Jan 2026 13:46:50 +0000 (10:46 -0300)
In this case its a temp list that is created just for listing events and
will be deleted at the end, so just cast it to get rid of the compiler
warning.

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

index 8f3ed83853a9e4685300e7a9d49a429a2e3d342b..4bbcdbf05b84330221bd64c3e051f6b2d31b808d 100644 (file)
@@ -86,7 +86,7 @@ void print_sdt_events(const struct print_callbacks *print_cb, void *print_state)
 
        strlist__for_each_entry(sdt_name, sdtlist) {
                bool show_detail = false;
-               char *bid = strchr(sdt_name->s, '@');
+               char *bid = (char *)strchr(sdt_name->s, '@');
                char *evt_name = NULL;
 
                if (bid)