Skip to content

Commit d469216

Browse files
zhangwenjian111xiaoxiang781216
authored andcommitted
note:fix syscall note compile error
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
1 parent 149b1f1 commit d469216

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/note/note_driver.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,8 +1216,9 @@ void sched_note_syscall_enter(int nr, int argc, ...)
12161216
FAR struct note_driver_s **driver;
12171217
bool formatted = false;
12181218
FAR struct tcb_s *tcb = this_task();
1219-
unsigned int length;
1219+
unsigned int length = 0;
12201220
uintptr_t arg;
1221+
va_list ap;
12211222
int argc_bak = argc;
12221223
int i;
12231224

@@ -1232,7 +1233,8 @@ void sched_note_syscall_enter(int nr, int argc, ...)
12321233
}
12331234

12341235
#ifdef CONFIG_SCHED_INSTRUMENTATION_FILTER
1235-
if (!(*driver->filter.mode.flag & NOTE_FILTER_MODE_FLAG_SYSCALL_ARGS))
1236+
if (!((*driver)->filter.mode.flag
1237+
& NOTE_FILTER_MODE_FLAG_SYSCALL_ARGS))
12361238
{
12371239
if (formatted && argc != 0)
12381240
{

0 commit comments

Comments
 (0)