Skip to content

Commit

Permalink
mmcsd: fix a build error
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
wanggang26 committed Sep 19, 2024
1 parent 012dcc4 commit f176331
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mmcsd/mmcsd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1408,6 +1410,7 @@ static int mmcsd_setblocklen(FAR struct mmcsd_state_s *priv,
return ret;
}

#if MMCSD_MULTIBLOCK_LIMIT != 1
/****************************************************************************
* Name: mmcsd_setblockcount
*
Expand All @@ -1430,6 +1433,7 @@ static int mmcsd_setblockcount(FAR struct mmcsd_state_s *priv,

return ret;
}
#endif

/****************************************************************************
* Name: mmcsd_readsingle
Expand Down

0 comments on commit f176331

Please sign in to comment.