summaryrefslogtreecommitdiff
path: root/tools/perf/tests/shell/jitdump-python.sh
diff options
context:
space:
mode:
authorLi Guan <guanli.oerv@isrc.iscas.ac.cn>2026-05-14 02:07:21 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-05-23 19:45:39 -0300
commit7378b6656aa46fda56f2743d5a7c1f619c2f6f9b (patch)
tree87b1969da416626ed1b4ea9d64f8eac81f01f97e /tools/perf/tests/shell/jitdump-python.sh
parentf83deb058025d1b6eb0ff297422634a5a11ef87b (diff)
perf riscv: Fix discarded const qualifier in _get_field()
The assignment of strrchr() return values to non-const char * variables triggers a -Werror=discarded-qualifiers warning when building with GCC 14. This happens because in newer glibc versions, strrchr() returns a 'const char *' if the input string is const. Properly declare 'line2' and 'nl' as const char * to match the glibc function signature and ensure type safety. This avoids the need for explicit type casting and aligns with the design pattern of not modifying read-only memory in the perf tool. Reviewed-by: Ian Rogers <irogers@google.com> Signed-off-by: Li Guan <guanli.oerv@isrc.iscas.ac.cn> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Paul Walmsley <pjw@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/shell/jitdump-python.sh')
0 files changed, 0 insertions, 0 deletions