note:fix syscall note compile error

Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
This commit is contained in:
zhangwenjian 2024-07-03 12:03:43 +08:00 committed by Xiang Xiao
parent 149b1f186e
commit d469216653
1 changed files with 4 additions and 2 deletions

View File

@ -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)
{