perf bpf-event: 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>
This commit is contained in:
Arnaldo Carvalho de Melo 2026-01-27 01:15:47 -03:00
parent 79bba3a183
commit 8bf093acb3
1 changed files with 2 additions and 1 deletions

View File

@ -733,7 +733,8 @@ kallsyms_process_symbol(void *data, const char *_name,
char type __maybe_unused, u64 start)
{
char disp[KSYM_NAME_LEN];
char *module, *name;
const char *module;
char *name;
unsigned long id;
int err = 0;