Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1 -1
+1 -1
tools/perf/util/print-events.c
··· 86 86 87 87 strlist__for_each_entry(sdt_name, sdtlist) { 88 88 bool show_detail = false; 89 - char *bid = strchr(sdt_name->s, '@'); 89 + char *bid = (char *)strchr(sdt_name->s, '@'); 90 90 char *evt_name = NULL; 91 91 92 92 if (bid)