diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-01-20 18:26:44 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-01-21 10:46:50 -0300 |
| commit | 9a0a5b5ac4372da84394dc329f763d6b7d384a86 (patch) | |
| tree | 4c44e9deddfcc904a38f6490c7092cedb3340725 /tools | |
| parent | 2c850606a46b319d5128bda59f67b1fc642d94ef (diff) | |
| download | linux-next-9a0a5b5ac4372da84394dc329f763d6b7d384a86.tar.gz linux-next-9a0a5b5ac4372da84394dc329f763d6b7d384a86.zip | |
perf list: Signal changing const memory is ok
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>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/perf/util/print-events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/print-events.c b/tools/perf/util/print-events.c index 8f3ed83853a9..4bbcdbf05b84 100644 --- a/tools/perf/util/print-events.c +++ b/tools/perf/util/print-events.c @@ -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) |
