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


The following commit(s) were added to refs/heads/master by this push:
     new f6c1d88931 mmcsd: fix a build error
f6c1d88931 is described below

commit f6c1d889315fe37f473e490db0cde8f0f89da42b
Author: wanggang26 <[email protected]>
AuthorDate: Thu Sep 19 14:06:34 2024 +0800

    mmcsd: fix a build error
    
    Error: mmcsd/mmcsd_sdio.c:1419:12: error: 'mmcsd_setblockcount' defined
    but not used [-Werror=unused-function]
    1172 1419 | static int mmcsd_setblockcount(FAR struct mmcsd_state_s
    *priv,
    
    Signed-off-by: wanggang26 <[email protected]>
---
 drivers/mmcsd/mmcsd_sdio.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c
index 0546063299..b3d3033ccb 100644
--- a/drivers/mmcsd/mmcsd_sdio.c
+++ b/drivers/mmcsd/mmcsd_sdio.c
@@ -164,8 +164,10 @@ static int     mmcsd_stoptransmission(FAR struct 
mmcsd_state_s *priv);
 #endif
 static int     mmcsd_setblocklen(FAR struct mmcsd_state_s *priv,
                                  uint32_t blocklen);
+#if MMCSD_MULTIBLOCK_LIMIT != 1
 static int     mmcsd_setblockcount(FAR struct mmcsd_state_s *priv,
                                    uint32_t nblocks);
+#endif
 static ssize_t mmcsd_readsingle(FAR struct mmcsd_state_s *priv,
                                 FAR uint8_t *buffer, off_t startblock);
 #if MMCSD_MULTIBLOCK_LIMIT != 1
@@ -1408,6 +1410,7 @@ static int mmcsd_setblocklen(FAR struct mmcsd_state_s 
*priv,
   return ret;
 }
 
+#if MMCSD_MULTIBLOCK_LIMIT != 1
 /****************************************************************************
  * Name: mmcsd_setblockcount
  *
@@ -1430,6 +1433,7 @@ static int mmcsd_setblockcount(FAR struct mmcsd_state_s 
*priv,
 
   return ret;
 }
+#endif
 
 /****************************************************************************
  * Name: mmcsd_readsingle

Reply via email to