From: Arnaldo Carvalho de Melo Date: Tue, 27 Jan 2026 04:15:47 +0000 (-0300) Subject: perf bpf-event: Constify variables storing the result of strchr() on const tables X-Git-Tag: v7.0-rc1~16^2~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bf093acb3f1f07d846c86e32308f9f9954ed579;p=thirdparty%2Flinux.git 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 --- diff --git a/tools/perf/util/bpf-event.c b/tools/perf/util/bpf-event.c index 2e6da3ad0a4f..67e7786bb878 100644 --- a/tools/perf/util/bpf-event.c +++ b/tools/perf/util/bpf-event.c @@ -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;