From 0eae218b49a46ef88e14f1cb763a6ca74fe342ab Mon Sep 17 00:00:00 2001 From: chao an Date: Wed, 22 Mar 2023 11:44:25 +0800 Subject: [PATCH] arm/chip/sdio/muxbus: comment all undefined symbols comment all undefined symbols to avoid build break if CONFIG_SDIO_MUXBUS enabled Signed-off-by: chao an --- arch/arm/src/imxrt/imxrt_usdhc.c | 8 ++++++-- arch/arm/src/kinetis/kinetis_sdhc.c | 6 +++++- arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c | 6 +++++- arch/arm/src/lpc43xx/lpc43_sdmmc.c | 6 +++++- arch/arm/src/lpc54xx/lpc54_sdmmc.c | 6 +++++- arch/arm/src/sama5/sam_sdmmc.c | 8 ++++++-- arch/arm/src/stm32/stm32_sdio.c | 6 +++++- arch/arm/src/stm32f7/stm32_sdmmc.c | 6 +++++- arch/arm/src/stm32h7/stm32_sdmmc.c | 6 +++++- arch/arm/src/stm32l4/stm32l4_sdmmc.c | 6 +++++- arch/risc-v/src/mpfs/mpfs_emmcsd.c | 5 ++++- 11 files changed, 56 insertions(+), 13 deletions(-) diff --git a/arch/arm/src/imxrt/imxrt_usdhc.c b/arch/arm/src/imxrt/imxrt_usdhc.c index 3d339fd489..b831dc3fd1 100644 --- a/arch/arm/src/imxrt/imxrt_usdhc.c +++ b/arch/arm/src/imxrt/imxrt_usdhc.c @@ -1375,8 +1375,12 @@ static int imxrt_lock(struct sdio_dev_s *dev, bool lock) { /* The multiplex bus is part of board support package. */ - imxrt_muxbus_sdio_lock((dev - g_sdhcdev) / - sizeof(struct imxrt_dev_s), lock); + /* FIXME: Implement the below function to support bus share: + * + * imxrt_muxbus_sdio_lock((dev - g_sdhcdev) / + * sizeof(struct imxrt_dev_s), lock); + */ + return OK; } #endif diff --git a/arch/arm/src/kinetis/kinetis_sdhc.c b/arch/arm/src/kinetis/kinetis_sdhc.c index 4f7cdffa36..2dc7977654 100644 --- a/arch/arm/src/kinetis/kinetis_sdhc.c +++ b/arch/arm/src/kinetis/kinetis_sdhc.c @@ -1202,7 +1202,11 @@ static int kinetis_lock(struct sdio_dev_s *dev, bool lock) * bus is part of board support package. */ - kinetis_muxbus_sdio_lock(lock); + /* FIXME: Implement the below function to support bus share: + * + * kinetis_muxbus_sdio_lock(lock); + */ + return OK; } #endif diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c index 060abced66..604e435da3 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c @@ -1382,7 +1382,11 @@ static int lpc17_40_lock(struct sdio_dev_s *dev, bool lock) * bus is part of board support package. */ - lpc17_40_muxbus_sdio_lock(lock); + /* FIXME: Implement the below function to support bus share: + * + * lpc17_40_muxbus_sdio_lock(lock); + */ + return OK; } #endif diff --git a/arch/arm/src/lpc43xx/lpc43_sdmmc.c b/arch/arm/src/lpc43xx/lpc43_sdmmc.c index d9bdacff26..553db45076 100644 --- a/arch/arm/src/lpc43xx/lpc43_sdmmc.c +++ b/arch/arm/src/lpc43xx/lpc43_sdmmc.c @@ -1201,7 +1201,11 @@ static int lpc43_lock(struct sdio_dev_s *dev, bool lock) * bus is part of board support package. */ - lpc43_muxbus_sdio_lock(lock); + /* FIXME: Implement the below function to support bus share: + * + * lpc43_muxbus_sdio_lock(lock); + */ + return OK; } #endif diff --git a/arch/arm/src/lpc54xx/lpc54_sdmmc.c b/arch/arm/src/lpc54xx/lpc54_sdmmc.c index b7d7ad293a..b8d28f5839 100644 --- a/arch/arm/src/lpc54xx/lpc54_sdmmc.c +++ b/arch/arm/src/lpc54xx/lpc54_sdmmc.c @@ -1197,7 +1197,11 @@ static int lpc54_lock(struct sdio_dev_s *dev, bool lock) * bus is part of board support package. */ - lpc54_muxbus_sdio_lock(lock); + /* FIXME: Implement the below function to support bus share: + * + * lpc54_muxbus_sdio_lock(lock); + */ + return OK; } #endif diff --git a/arch/arm/src/sama5/sam_sdmmc.c b/arch/arm/src/sama5/sam_sdmmc.c index 5147a0cce2..3e45a3267f 100644 --- a/arch/arm/src/sama5/sam_sdmmc.c +++ b/arch/arm/src/sama5/sam_sdmmc.c @@ -1473,8 +1473,12 @@ static int sam_lock(struct sdio_dev_s *dev, bool lock) { /* The multiplex bus is part of board support package. */ - sam_muxbus_sdio_lock((dev - g_sdmmcdev) / - sizeof(struct sam_dev_s), lock); + /* FIXME: Implement the below function to support bus share: + * + * sam_muxbus_sdio_lock((dev - g_sdmmcdev) / + * sizeof(struct sam_dev_s), lock); + */ + return OK; } #endif diff --git a/arch/arm/src/stm32/stm32_sdio.c b/arch/arm/src/stm32/stm32_sdio.c index bd84b87725..f345227bca 100644 --- a/arch/arm/src/stm32/stm32_sdio.c +++ b/arch/arm/src/stm32/stm32_sdio.c @@ -1580,7 +1580,11 @@ static int stm32_lock(struct sdio_dev_s *dev, bool lock) * bus is part of board support package. */ - stm32_muxbus_sdio_lock(lock); + /* FIXME: Implement the below function to support bus share: + * + * stm32_muxbus_sdio_lock(lock); + */ + return OK; } #endif diff --git a/arch/arm/src/stm32f7/stm32_sdmmc.c b/arch/arm/src/stm32f7/stm32_sdmmc.c index d71a401a51..be3015bd12 100644 --- a/arch/arm/src/stm32f7/stm32_sdmmc.c +++ b/arch/arm/src/stm32f7/stm32_sdmmc.c @@ -1832,7 +1832,11 @@ static int stm32_lock(struct sdio_dev_s *dev, bool lock) { /* The multiplex bus is part of board support package. */ - stm32_muxbus_sdio_lock(dev, lock); + /* FIXME: Implement the below function to support bus share: + * + * stm32_muxbus_sdio_lock(dev, lock); + */ + return OK; } #endif diff --git a/arch/arm/src/stm32h7/stm32_sdmmc.c b/arch/arm/src/stm32h7/stm32_sdmmc.c index b026f5c0b2..8975b88ca4 100644 --- a/arch/arm/src/stm32h7/stm32_sdmmc.c +++ b/arch/arm/src/stm32h7/stm32_sdmmc.c @@ -1872,7 +1872,11 @@ static int stm32_lock(struct sdio_dev_s *dev, bool lock) { /* The multiplex bus is part of board support package. */ - stm32_muxbus_sdio_lock(dev, lock); + /* FIXME: Implement the below function to support bus share: + * + * stm32_muxbus_sdio_lock(dev, lock); + */ + return OK; } #endif diff --git a/arch/arm/src/stm32l4/stm32l4_sdmmc.c b/arch/arm/src/stm32l4/stm32l4_sdmmc.c index d55ee98851..018290ce42 100644 --- a/arch/arm/src/stm32l4/stm32l4_sdmmc.c +++ b/arch/arm/src/stm32l4/stm32l4_sdmmc.c @@ -1632,7 +1632,11 @@ static int stm32_lock(struct sdio_dev_s *dev, bool lock) { /* The multiplex bus is part of board support package. */ - stm32_muxbus_sdio_lock(dev, lock); + /* FIXME: Implement the below function to support bus share: + * + * stm32_muxbus_sdio_lock(dev, lock); + */ + return OK; } #endif diff --git a/arch/risc-v/src/mpfs/mpfs_emmcsd.c b/arch/risc-v/src/mpfs/mpfs_emmcsd.c index 372d87c952..a4260982c6 100644 --- a/arch/risc-v/src/mpfs/mpfs_emmcsd.c +++ b/arch/risc-v/src/mpfs/mpfs_emmcsd.c @@ -1180,7 +1180,10 @@ static int mpfs_lock(struct sdio_dev_s *dev, bool lock) { /* The multiplex bus is part of board support package. */ - mpfs_muxbus_sdio_lock(dev, lock); + /* FIXME: Implement the below function to support bus share: + * + * mpfs_muxbus_sdio_lock(dev, lock); + */ return OK; }