]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf bpf-utils: Constify bpil_array_desc
authorIan Rogers <irogers@google.com>
Tue, 2 Sep 2025 18:17:12 +0000 (11:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:58:25 +0000 (18:58 +0200)
commit150101bbe24ab9841f39e661bd8ddb1070aa7d3f
tree81572d9b28dfa9607039974e909a707c611384bd
parent25eac390c4af3111d16921a80963933ceded5a24
perf bpf-utils: Constify bpil_array_desc

[ Upstream commit 1654a0e4d576d9e43fbb10ccf6a1b307c5c18566 ]

The array's contents is a compile time constant. Constify to make the
code more intention revealing and avoid unintended errors.

Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250902181713.309797-3-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Stable-dep-of: 01be43f2a0ea ("perf bpf-utils: Harden get_bpf_prog_info_linear")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/bpf-utils.c