]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf bpf-event: Constify variables storing the result of strchr() on const tables
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 04:15:47 +0000 (01:15 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jan 2026 05:35:29 +0000 (02:35 -0300)
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>
tools/perf/util/bpf-event.c

index 2e6da3ad0a4f94a247f9cace1856df9bae23764d..67e7786bb878b39661d42948d52ac206c57bd3b8 100644 (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;