mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-07 04:39:20 +00:00
dm: mmc: Fix up mmc_bread/bwrite() prototypes for SPL
When these functions are not compiled in, we still need to declare the correct function signature to avoid a build warnings in SPL. Fix this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f6e41d17ab
commit
e419a3ec1a
1 changed files with 14 additions and 0 deletions
|
@ -37,6 +37,19 @@ ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
|
||||||
|
|
||||||
/* SPL will never write or erase, declare dummies to reduce code size. */
|
/* SPL will never write or erase, declare dummies to reduce code size. */
|
||||||
|
|
||||||
|
#ifdef CONFIG_BLK
|
||||||
|
static inline unsigned long mmc_berase(struct udevice *dev,
|
||||||
|
lbaint_t start, lbaint_t blkcnt)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline ulong mmc_bwrite(struct udevice *dev, lbaint_t start,
|
||||||
|
lbaint_t blkcnt, const void *src)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#else
|
||||||
static inline unsigned long mmc_berase(struct blk_desc *block_dev,
|
static inline unsigned long mmc_berase(struct blk_desc *block_dev,
|
||||||
lbaint_t start, lbaint_t blkcnt)
|
lbaint_t start, lbaint_t blkcnt)
|
||||||
{
|
{
|
||||||
|
@ -48,6 +61,7 @@ static inline ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start,
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_SPL_BUILD */
|
#endif /* CONFIG_SPL_BUILD */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue