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

acassis 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 811eb22d58c drivers/mmcsd/mmcsd_sdio.c: guard SDIO_REGISTERCALLBACK use
811eb22d58c is described below

commit 811eb22d58c8807fed6ab90e50500d7031a98835
Author: shichunma <[email protected]>
AuthorDate: Thu Jun 4 14:51:42 2026 +0800

    drivers/mmcsd/mmcsd_sdio.c: guard SDIO_REGISTERCALLBACK use
    
    SDIO_REGISTERCALLBACK is only defined when both CONFIG_SCHED_WORKQUEUE and 
CONFIG_SCHED_HPWORK are enabled.
    Guard the callback registration call in mmcsd_sdio.c so the source matches 
the SDIO callback API availability and avoids
    build issues when HPWORK support is not configured.
    
    Signed-off-by: Jerry Ma <[email protected]>
---
 drivers/mmcsd/mmcsd_sdio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c
index e1b45bf26ee..7eaad68460b 100644
--- a/drivers/mmcsd/mmcsd_sdio.c
+++ b/drivers/mmcsd/mmcsd_sdio.c
@@ -4531,7 +4531,9 @@ static int mmcsd_hwinitialize(FAR struct mmcsd_state_s 
*priv)
    * removed from the slot (Initially all callbacks are disabled).
    */
 
+#if defined(CONFIG_SCHED_WORKQUEUE) && defined(CONFIG_SCHED_HPWORK)
   SDIO_REGISTERCALLBACK(priv->dev, mmcsd_mediachange, (FAR void *)priv);
+#endif
 
   /* Is there a card in the slot now? For an MMC/SD card, there are three
    * possible card detect mechanisms:

Reply via email to