From f176331b9771b42633f7ee475386e03d55c940ae Mon Sep 17 00:00:00 2001 From: wanggang26 Date: Thu, 19 Sep 2024 14:06:34 +0800 Subject: [PATCH] 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 --- 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 0546063299a37..b3d3033ccba20 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