From d469216653ef3135dc98a424ec7355e1f5775fc0 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Wed, 3 Jul 2024 12:03:43 +0800 Subject: [PATCH] note:fix syscall note compile error Signed-off-by: zhangwenjian --- drivers/note/note_driver.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/note/note_driver.c b/drivers/note/note_driver.c index 6b619c470e096..0a20969e4f5a3 100644 --- a/drivers/note/note_driver.c +++ b/drivers/note/note_driver.c @@ -1216,8 +1216,9 @@ void sched_note_syscall_enter(int nr, int argc, ...) FAR struct note_driver_s **driver; bool formatted = false; FAR struct tcb_s *tcb = this_task(); - unsigned int length; + unsigned int length = 0; uintptr_t arg; + va_list ap; int argc_bak = argc; int i; @@ -1232,7 +1233,8 @@ void sched_note_syscall_enter(int nr, int argc, ...) } #ifdef CONFIG_SCHED_INSTRUMENTATION_FILTER - if (!(*driver->filter.mode.flag & NOTE_FILTER_MODE_FLAG_SYSCALL_ARGS)) + if (!((*driver)->filter.mode.flag + & NOTE_FILTER_MODE_FLAG_SYSCALL_ARGS)) { if (formatted && argc != 0) {