[PATCH] perf cs-etm: Mute enumeration value warning

Namhyung Kim namhyung at kernel.org
Fri Oct 24 11:57:11 PDT 2025


On Wed, 22 Oct 2025 15:28:49 +0100, Leo Yan wrote:
> 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.
> 
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung





More information about the linux-arm-kernel mailing list