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-apps.git
commit a63aef8f021a60cb87eca622de5f109a159c7bdd Author: zhanghu6 <[email protected]> AuthorDate: Mon Dec 6 12:05:41 2021 +0800 warning: trace_dump_sched_switch unused because add SCHED_INSTRUMENTATION_SWITCH https://github.com/apache/incubator-nuttx/pull/4998 note dump: add CONFIG_SCHED_INSTRUMENTATION_SWITCH #4998 --- system/trace/trace_dump.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/trace/trace_dump.c b/system/trace/trace_dump.c index 3f0731a..b7ac847 100644 --- a/system/trace/trace_dump.c +++ b/system/trace/trace_dump.c @@ -308,6 +308,8 @@ static void trace_dump_header(FAR FILE *out, ); } + #if (defined CONFIG_SCHED_INSTRUMENTATION_SWITCH) || \ + (defined CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER) /**************************************************************************** * Name: trace_dump_sched_switch ****************************************************************************/ @@ -339,6 +341,7 @@ static void trace_dump_sched_switch(FAR FILE *out, cctx->current_pid = cctx->next_pid; cctx->pendingswitch = false; } +#endif /**************************************************************************** * Name: trace_dump_one
