From: Arnaldo Carvalho de Melo Date: Tue, 27 Jan 2026 04:15:47 +0000 (-0300) Subject: perf disasm: Constify variables storing the result of bsearch() on const tables X-Git-Tag: v7.0-rc1~16^2~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23262369e650c9995505eb4f69f16449467e6bfe;p=thirdparty%2Flinux.git perf disasm: Constify variables storing the result of bsearch() 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/disasm.c b/tools/perf/util/disasm.c index 6b36287f30fe..ddcc488f2e5f 100644 --- a/tools/perf/util/disasm.c +++ b/tools/perf/util/disasm.c @@ -761,7 +761,7 @@ static void ins__sort(struct arch *arch) static const struct ins_ops *__ins__find(const struct arch *arch, const char *name, struct disasm_line *dl) { - struct ins *ins; + const struct ins *ins; const int nmemb = arch->nr_instructions; if (arch__is_powerpc(arch)) {