Skip to content

Commit 5f6d997

Browse files
acmelgregkh
authored andcommitted
perf bpf-event: Constify variables storing the result of strchr() on const tables
commit 8bf093a upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3b540ba commit 5f6d997

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/perf/util/bpf-event.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,8 @@ kallsyms_process_symbol(void *data, const char *_name,
733733
char type __maybe_unused, u64 start)
734734
{
735735
char disp[KSYM_NAME_LEN];
736-
char *module, *name;
736+
const char *module;
737+
char *name;
737738
unsigned long id;
738739
int err = 0;
739740

0 commit comments

Comments
 (0)