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

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

commit 740f518083808941d2cdf14ccfd5c68e8286bf0a
Author: ouyangxiangzhen <[email protected]>
AuthorDate: Wed Jan 7 11:30:54 2026 +0800

    sched/hrtimer: Add const for hrtimer argument.
    
    The callback function can not modify the hrtimer.
    
    Signed-off-by: ouyangxiangzhen <[email protected]>
---
 include/nuttx/hrtimer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/nuttx/hrtimer.h b/include/nuttx/hrtimer.h
index 0bf3cc90996..9b8a33fcc5f 100644
--- a/include/nuttx/hrtimer.h
+++ b/include/nuttx/hrtimer.h
@@ -66,7 +66,7 @@ typedef struct hrtimer_node_s hrtimer_node_t;
  */
 
 typedef CODE uint64_t
-(*hrtimer_cb)(FAR hrtimer_t *hrtimer, uint64_t expired);
+(*hrtimer_cb)(FAR const hrtimer_t *hrtimer, uint64_t expired);
 
 /* Red-black tree node used to order hrtimers by expiration time */
 

Reply via email to