diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-01-27 02:15:30 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-01-27 02:15:30 -0300 |
| commit | 0e47251e8cc438d5b59fcd86d27efade01976fe1 (patch) | |
| tree | 9387ee530139a5f2a7017969d72af61db81f9b6f | |
| parent | f1321cce848c558fde4c0c6bcd5e53f3cefd3af2 (diff) | |
perf hwmon_pmu: Constify the variables returning bsearch() on const tables
To address const-correctness errors on newer glibcs (-Werror=discarded-qualifiers).
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
| -rw-r--r-- | tools/perf/util/hwmon_pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/hwmon_pmu.c b/tools/perf/util/hwmon_pmu.c index 279d6b1a47f0..fb3ffa8d32ad 100644 --- a/tools/perf/util/hwmon_pmu.c +++ b/tools/perf/util/hwmon_pmu.c @@ -161,7 +161,7 @@ bool parse_hwmon_filename(const char *filename, bool *alarm) { char fn_type[24]; - const char **elem; + const char * const *elem; const char *fn_item = NULL; size_t fn_item_len; |
