[U-Boot] [PATCH 1/2] mmc: Use proper IS_ENABLED macro to check block support
Daniel Schwierzeck
daniel.schwierzeck at gmail.com
Sat Jan 12 16:51:54 UTC 2019
Am 07.01.19 um 22:13 schrieb Ezequiel Garcia:
> Use CONFIG_IS_ENABLED(BLK) instead of CONFIG_BLK,
> in order to fix the following build issues when
> CONFIG_SPL_MMC_WRITE is selected:
>
> drivers/mmc/mmc_write.c:69:7: error: conflicting types for 'mmc_berase'
> ulong mmc_berase(struct udevice *dev, lbaint_t start, lbaint_t blkcnt)
> ^~~~~~~~~~
> In file included from drivers/mmc/mmc_write.c:15:0:
> drivers/mmc/mmc_private.h:39:7: note: previous declaration of 'mmc_berase' was here
> ulong mmc_berase(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt);
> ^~~~~~~~~~
> drivers/mmc/mmc_write.c:187:7: error: conflicting types for 'mmc_bwrite'
> ulong mmc_bwrite(struct udevice *dev, lbaint_t start, lbaint_t blkcnt,
> ^~~~~~~~~~
> In file included from drivers/mmc/mmc_write.c:15:0:
> drivers/mmc/mmc_private.h:37:7: note: previous declaration of 'mmc_bwrite' was here
> ulong mmc_bwrite(struct blk_desc *block_dev, lbaint_t start, lbaint_t blkcnt,
> ^~~~~~~~~~
>
> Signed-off-by: Ezequiel Garcia <ezequiel at collabora.com>
> ---
> drivers/mmc/mmc_write.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
applied to u-boot-mips/next, thanks.
--
- Daniel
More information about the U-Boot
mailing list