From 81996900dbe00f7af880305b1385bf70ad63e00b Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 22 Jan 2024 17:58:14 +0900 Subject: [PATCH] fix build with CONFIG_SCHED_INSTRUMENTATION_FUNCTION --- drivers/note/note_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/note/note_driver.c b/drivers/note/note_driver.c index 758f1c5a77..b02d94e98f 100644 --- a/drivers/note/note_driver.c +++ b/drivers/note/note_driver.c @@ -162,8 +162,8 @@ static void note_driver_instrument_leave(FAR void *this_fn, FAR void *call_site, FAR void *arg) noinstrument_function; static struct instrument_s g_note_instrument = { - .entry = note_driver_instrument_enter, - .exit = note_driver_instrument_leave, + .enter = note_driver_instrument_enter, + .leave = note_driver_instrument_leave, }; #endif @@ -1969,7 +1969,7 @@ int note_driver_register(FAR struct note_driver_s *driver) if (!initialized) { - instrument_register(g_note_instrument) + instrument_register(&g_note_instrument); initialized = true; } #endif