You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/04/02 14:24:54 UTC

[incubator-nuttx] 02/02: note_sysview.c: fix compilation if CONFIG_SCHED_INSTRUMENTATION_FILTER not defined

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit c4c2c46ebf4311ab8356393a4ea762a6401d82ee
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sat Apr 2 13:39:28 2022 +0200

    note_sysview.c: fix compilation if CONFIG_SCHED_INSTRUMENTATION_FILTER not defined
---
 drivers/segger/note_sysview.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/segger/note_sysview.c b/drivers/segger/note_sysview.c
index f9649cf..1d2f20b 100644
--- a/drivers/segger/note_sysview.c
+++ b/drivers/segger/note_sysview.c
@@ -478,7 +478,9 @@ int sysview_initialize(void)
   SEGGER_SYSVIEW_SetRAMBase(CONFIG_SEGGER_SYSVIEW_RAM_BASE);
 #endif
 
+#ifdef CONFIG_SCHED_INSTRUMENTATION_FILTER
   if ((g_sysview.mode.flag & NOTE_FILTER_MODE_FLAG_ENABLE) != 0)
+#endif
     {
       SEGGER_SYSVIEW_Start();
     }