From: Kevin Hao <kexin....@windriver.com> A new CS_MODE_READ_PREVBOOT mode was introduced by commit e86129e38029 ("coresight: tmc: etr: Add support for Marvell OcteonTX2"), but it was not added in switch of etm4_disable(). This would emit a build error like below when CONFIG_WERROR is enabled: drivers/hwtracing/coresight/coresight-etm4x-core.c: In function ‘etm4_disable’: drivers/hwtracing/coresight/coresight-etm4x-core.c:1050:9: error: enumeration value ‘CS_MODE_READ_PREVBOOT’ not handled in switch [-Werror=switch] 1050 | switch (mode) { | ^~~~~~ cc1: all warnings being treated as errors
Signed-off-by: Kevin Hao <kexin....@windriver.com> --- drivers/hwtracing/coresight/coresight-etm4x-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index 52f193484310..2128a0a6a37f 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -1049,6 +1049,7 @@ static void etm4_disable(struct coresight_device *csdev, switch (mode) { case CS_MODE_DISABLED: + case CS_MODE_READ_PREVBOOT: break; case CS_MODE_SYSFS: etm4_disable_sysfs(csdev); -- 2.45.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14093): https://lists.yoctoproject.org/g/linux-yocto/message/14093 Mute This Topic: https://lists.yoctoproject.org/mt/106829797/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-