jerpelea opened a new pull request, #21297: URL: https://github.com/apache/nuttx/pull/21297
## Summary The callbackenable function prototype and macro were previously outside the ifdef guards for HPWORK queue support, while registercallback was guarded by CONFIG_SCHED_WORKQUEUE && CONFIG_SCHED_HPWORK. Since callbacks require high-priority work queue support to be registered and executed, enabling callbacks without HPWORK support enables nothing and leaves an unnecessary function pointer in struct sdio_dev_s. This commit: - Guards callbackenable in struct sdio_dev_s under CONFIG_SCHED_WORKQUEUE && CONFIG_SCHED_HPWORK. - Defines SDIO_CALLBACKENABLE as a no-op ((void)0) when HPWORK is disabled to prevent compilation breaks in upper-half drivers. Fixes: #17249 ## Impact RELEASE ## Testing CI -- 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]
