summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@kernel.org>2025-12-11 19:17:55 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2025-12-17 09:30:37 -0300
commit45718bce7daf39c618188b70a52644bb5a2f968a (patch)
treed182ea2e7a5199a93292d4e107295f48d699b650 /tools/perf/scripts/python/bin/stackcollapse-report
parentf6f41aef53761517391b6192fe5b4bc30b2d717a (diff)
downloadlinux-45718bce7daf39c618188b70a52644bb5a2f968a.tar.gz
linux-45718bce7daf39c618188b70a52644bb5a2f968a.zip
perf tools: Use const for variables receiving str{str,r?chr}() returns
Newer glibc versions return const char for str{str,chr}() where the haystack/s is const so to avoid warnings like these on fedora 44 change some variables to const: 36 8.17 fedora:44 : FAIL gcc version 15.2.1 20251111 (Red Hat 15.2.1-4) (GCC) libbpf.c: In function 'kallsyms_cb': libbpf.c:8489:13: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 8489 | res = strstr(sym_name, ".llvm."); Reviewed-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20251211221756.96294-4-acme@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions