mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
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>
This commit is contained in:
parent
2c850606a4
commit
9a0a5b5ac4
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user