This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 81996900db fix build with CONFIG_SCHED_INSTRUMENTATION_FUNCTION
81996900db is described below

commit 81996900dbe00f7af880305b1385bf70ad63e00b
Author: YAMAMOTO Takashi <yamam...@midokura.com>
AuthorDate: Mon Jan 22 17:58:14 2024 +0900

    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

Reply via email to