diff options
| author | Leo Yan <leo.yan@arm.com> | 2025-10-22 15:28:49 +0100 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-10-23 18:59:13 -0700 |
| commit | 3e98f0203e10bc9d379852faf424f769ef5049a6 (patch) | |
| tree | dddb2a683dbb477296d71ad570ac03e1f2219a5f /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 9960889b32a45af39c53a46db6fd36ff1fa71a4f (diff) | |
| download | linux-3e98f0203e10bc9d379852faf424f769ef5049a6.tar.gz linux-3e98f0203e10bc9d379852faf424f769ef5049a6.zip | |
perf cs-etm: Mute enumeration value warning
When the OpenCSD library introduces a new enumeration value (for example,
in the v1.7.1 release), the perf build fails with an error:
util/cs-etm-decoder/cs-etm-decoder.c:600:10: error: enumeration value 'OCSD_GEN_TRC_ELEM_ITMTRACE' not explicitly handled in switch [-Werror, -Wswitch-enum]
600 | switch (elem->elem_type) {
| ^~~~~~~~~~~~~~~
1 error generated.
Convert to if-else sentences to mute the enumeration value warning,
which can avoid build failures whenever the lib is updated.
No functional change.
Suggested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
