summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@arm.com>2025-10-22 15:28:49 +0100
committerNamhyung Kim <namhyung@kernel.org>2025-10-23 18:59:13 -0700
commit3e98f0203e10bc9d379852faf424f769ef5049a6 (patch)
treedddb2a683dbb477296d71ad570ac03e1f2219a5f /tools/perf/scripts/python
parent9960889b32a45af39c53a46db6fd36ff1fa71a4f (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions