diff options
| author | Kuba Piecuch <jpiecuch@google.com> | 2026-04-13 12:49:02 +0000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-04-13 06:14:05 -1000 |
| commit | 4615361f0b148c172852590e6245a953cc075b73 (patch) | |
| tree | e67f4b918938c0e9f32e81fdf524f1473184c71e /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3d3667f265148d856bc6eb54d1bd780a94e38da7 (diff) | |
sched_ext: Make string params of __ENUM_set() const
A small change to improve type safety/const correctness.
__COMPAT_read_enum() already has const string parameters.
It fixes a warning when using the header in C++ code:
error: ISO C++11 does not allow conversion from string literal
to 'char *' [-Werror,-Wwritable-strings]
That's because string literals have type char[N] in C and
const char[N] in C++.
Signed-off-by: Kuba Piecuch <jpiecuch@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
