mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
dirvers: mmc: use __weak
use weak instead of alias to prevent some clang warnings. Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
@@ -42,13 +42,11 @@ int mmc_getwp(struct mmc *mmc)
|
|||||||
return wp;
|
return wp;
|
||||||
}
|
}
|
||||||
|
|
||||||
int __board_mmc_getcd(struct mmc *mmc) {
|
__weak int board_mmc_getcd(struct mmc *mmc)
|
||||||
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int board_mmc_getcd(struct mmc *mmc)__attribute__((weak,
|
|
||||||
alias("__board_mmc_getcd")));
|
|
||||||
|
|
||||||
int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
|
int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
@@ -1371,17 +1369,17 @@ int mmc_set_dsr(struct mmc *mmc, u16 val)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* CPU-specific MMC initializations */
|
||||||
* CPU and board-specific MMC initializations. Aliased function
|
__weak int cpu_mmc_init(bd_t *bis)
|
||||||
* signals caller to move on
|
|
||||||
*/
|
|
||||||
static int __def_mmc_init(bd_t *bis)
|
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cpu_mmc_init(bd_t *bis) __attribute__((weak, alias("__def_mmc_init")));
|
/* board-specific MMC initializations. */
|
||||||
int board_mmc_init(bd_t *bis) __attribute__((weak, alias("__def_mmc_init")));
|
__weak int board_mmc_init(bd_t *bis)
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
|
#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user