summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mmcsd/mmcsd_sdio.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-17 19:52:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-17 19:52:47 +0000
commitd3460ffca8719e905c4af616d6041ee35e27f54f (patch)
tree3b54556320bffdc0cd4d9ff3a25d76cb10bae13b /nuttx/drivers/mmcsd/mmcsd_sdio.c
parentf402f2dd6ae554ba006ee405ccbccb2663e3b3db (diff)
downloadnuttx-d3460ffca8719e905c4af616d6041ee35e27f54f.tar.gz
nuttx-d3460ffca8719e905c4af616d6041ee35e27f54f.tar.bz2
nuttx-d3460ffca8719e905c4af616d6041ee35e27f54f.zip
Eliminate some warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2376 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/mmcsd/mmcsd_sdio.c')
-rw-r--r--nuttx/drivers/mmcsd/mmcsd_sdio.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/drivers/mmcsd/mmcsd_sdio.c b/nuttx/drivers/mmcsd/mmcsd_sdio.c
index 9d04c683b..710fee476 100644
--- a/nuttx/drivers/mmcsd/mmcsd_sdio.c
+++ b/nuttx/drivers/mmcsd/mmcsd_sdio.c
@@ -172,7 +172,9 @@ static int mmcsd_verifystate(FAR struct mmcsd_state_s *priv,
/* Transfer helpers *********************************************************/
+#ifdef CONFIG_FS_WRITABLE
static bool mmcsd_wrprotected(FAR struct mmcsd_state_s *priv);
+#endif
static int mmcsd_eventwait(FAR struct mmcsd_state_s *priv,
sdio_eventset_t failevents, uint32_t timeout);
static int mmcsd_transferready(FAR struct mmcsd_state_s *priv);
@@ -975,6 +977,7 @@ static int mmcsd_verifystate(FAR struct mmcsd_state_s *priv, uint32_t state)
*
****************************************************************************/
+#ifdef CONFIG_FS_WRITABLE
static bool mmcsd_wrprotected(FAR struct mmcsd_state_s *priv)
{
/* Check if the card is locked (priv->locked) or write protected either (1)
@@ -985,6 +988,7 @@ static bool mmcsd_wrprotected(FAR struct mmcsd_state_s *priv)
return (priv->wrprotect || priv->locked || SDIO_WRPROTECTED(priv->dev));
}
+#endif
/****************************************************************************
* Name: mmcsd_eventwait
@@ -1436,6 +1440,7 @@ static ssize_t mmcsd_reload(FAR void *dev, FAR uint8_t *buffer,
*
****************************************************************************/
+#ifdef CONFIG_FS_WRITABLE
static ssize_t mmcsd_writesingle(FAR struct mmcsd_state_s *priv,
FAR const uint8_t *buffer, off_t startblock)
{
@@ -1535,6 +1540,7 @@ static ssize_t mmcsd_writesingle(FAR struct mmcsd_state_s *priv,
return 1;
}
+#endif
/****************************************************************************
* Name: mmcsd_writemultiple
@@ -1544,6 +1550,7 @@ static ssize_t mmcsd_writesingle(FAR struct mmcsd_state_s *priv,
*
****************************************************************************/
+#ifdef CONFIG_FS_WRITABLE
static ssize_t mmcsd_writemultiple(FAR struct mmcsd_state_s *priv,
FAR const uint8_t *buffer, off_t startblock,
size_t nblocks)
@@ -1686,6 +1693,7 @@ static ssize_t mmcsd_writemultiple(FAR struct mmcsd_state_s *priv,
return nblocks;
}
+#endif
/****************************************************************************
* Name: mmcsd_flush