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 <wanggang26@xiaomi.com>
This commit is contained in:
parent
f01a2c70fd
commit
f6c1d88931
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue