From a63aef8f021a60cb87eca622de5f109a159c7bdd Mon Sep 17 00:00:00 2001 From: zhanghu6 Date: Mon, 6 Dec 2021 12:05:41 +0800 Subject: [PATCH] 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 3f0731ac5..b7ac847d3 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