From: Arnaldo Carvalho de Melo Date: Tue, 27 Jan 2026 04:15:47 +0000 (-0300) Subject: perf demangle-java: Constify variables storing the result of strchr() on const tables X-Git-Tag: v7.0-rc1~16^2~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79bba3a1834e7ba6c437674582cc9f3ae6fb638c;p=thirdparty%2Flinux.git perf demangle-java: 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/demangle-java.c b/tools/perf/util/demangle-java.c index ddf33d58bcd3..c3cb327ed562 100644 --- a/tools/perf/util/demangle-java.c +++ b/tools/perf/util/demangle-java.c @@ -158,7 +158,7 @@ char * java_demangle_sym(const char *str, int flags) { char *buf, *ptr; - char *p; + const char *p; size_t len, l1 = 0; if (!str)