]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf symbols: Make variable receiving result strrchr() const
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Apr 2026 17:31:56 +0000 (14:31 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 9 Apr 2026 02:21:04 +0000 (19:21 -0700)
commitd3e01be6daab9f76f3c8b0ffd556ed9f18275c22
tree915ba9cd7900491a5a19adb4900b3ed324b04298
parentf552b132e4d5248715828e7e5c2bf7889bf05b2e
perf symbols: Make variable receiving result strrchr() const

Fixing:

  util/symbol.c: In function ‘symbol__config_symfs’:
  util/symbol.c:2499:20: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   2499 |         layout_str = strrchr(dir, ',');
        |

With recent gcc/glibc.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/symbol.c