]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: Fix a potential warning in xPL
authorTom Rini <trini@konsulko.com>
Wed, 1 Oct 2025 20:30:41 +0000 (14:30 -0600)
committerPeng Fan <peng.fan@nxp.com>
Fri, 10 Oct 2025 02:46:40 +0000 (10:46 +0800)
When xPL_MMC_WRITE is set but also xPL_MMC_TINY is set, the function
sd_read_ssr may be unused. Guard it appropriately.

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/mmc.c

index b1cfa3cd7c22fac07fa16fac1cdb9500d2470a50..ec61ed92e8658b40391e20355d48ff81368df7ee 100644 (file)
@@ -1546,7 +1546,7 @@ static int sd_select_bus_width(struct mmc *mmc, int w)
 }
 #endif
 
-#if CONFIG_IS_ENABLED(MMC_WRITE)
+#if CONFIG_IS_ENABLED(MMC_WRITE) && !CONFIG_IS_ENABLED(MMC_TINY)
 static int sd_read_ssr(struct mmc *mmc)
 {
        static const unsigned int sd_au_size[] = {