Skip to content

glibc str functions const return fixes

Arnaldo Carvalho de Melo linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf list: Remove unused 'sep' variabletools/perf/builtin-list.c+2 -20 replies
2/4perf diff: Constify strchr() return variablestools/perf/builtin-diff.c+5 -70 replies
3/4perf tools: Use const for variables receiving str{str,r?chr}() returnstools/perf/jvmti/libjvmti.c tools/perf/tests/parse-events.c tools/perf/util/evlist.c+5 -40 replies
4/4perf trace: Don't change const char stringstools/perf/builtin-trace.c+7 -40 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIan Rogers
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH perf-next 0/4] glibc str functions const return fixes

Hi,

While building with Fedora 44 I noticed so interesting warnings
about touching const memory, fix some of them in this series,

- Arnaldo

Arnaldo Carvalho de Melo (4):
perf list: Remove unused 'sep' variable
perf diff: Constify strchr() return variables
perf tools: Use const for variables receiving str{str,r?chr}() returns perf trace: Don't change const char strings

 tools/perf/builtin-diff.c       | 12 +++++-------
 tools/perf/builtin-list.c       |  4 ++--
 tools/perf/builtin-trace.c      | 11 +++++++----
 tools/perf/jvmti/libjvmti.c     |  2 +-
 tools/perf/tests/parse-events.c |  4 ++--
 tools/perf/util/evlist.c        |  3 ++-
 6 files changed, 19 insertions(+), 17 deletions(-)
Signature · 1 line
2.52.0