wangchdo opened a new pull request, #18025: URL: https://github.com/apache/nuttx/pull/18025
## Summary Drop the const qualifier from the hrtimer object parameter passed to hrtimer callbacks, since callbacks may call hrtimer_cancel() or hrtimer_start(), which require a non-const hrtimer object. Enable the hrtimer ostest in CI to ensure the updated callback interface is built and exercised. ## Impact This change improves the hrtimer subsystem and does not affect any other NuttX functionality. ## Testing ostest passed with hrtimer enabled: **a2g-tc397-5v-tft:nsh** ``` NuttShell (NSH) nsh> nsh> uname -a NuttX 0.0.0 d8dce7c87e Jan 20 2026 09:23:39 tricore a2g-tc397-5v-tft nsh> nsh> ostest (...) user_main: hrtimer test End of test memory usage: VARIABLE BEFORE AFTER ======== ======== ======== arena 28e00 28e00 ordblks 6 6 mxordblk 1f890 1f890 uordblks 5578 5578 fordblks 23888 23888 Final memory usage: VARIABLE BEFORE AFTER ======== ======== ======== arena 28e00 28e00 ordblks 1 6 mxordblk 24208 1f890 uordblks 4bf8 5578 fordblks 24208 23888 user_main: Exiting ostest_main: Exiting with status 0 nsh> nsh> ``` **rv-virt:smp64** ``` NuttShell (NSH) nsh> nsh> nsh> nsh> uname -a NuttX 0.0.0 d8dce7c87e-dirty Jan 20 2026 09:28:44 risc-v rv-virt nsh> nsh> ostest (...) user_main: hrtimer test End of test memory usage: VARIABLE BEFORE AFTER ======== ======== ======== arena 1fc0bc0 1fc0bc0 ordblks 8 6 mxordblk 1f9e758 1f9e758 uordblks 14b10 16310 fordblks 1fac0b0 1faa8b0 Final memory usage: VARIABLE BEFORE AFTER ======== ======== ======== arena 1fc0bc0 1fc0bc0 ordblks 1 6 mxordblk 1fb5ac8 1f9e758 uordblks b0f8 16310 fordblks 1fb5ac8 1faa8b0 user_main: Exiting ostest_main: Exiting with status 0 nsh> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
