[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230311111238.251000-1-krzysztof.kozlowski@linaro.org>
Date: Sat, 11 Mar 2023 12:12:38 +0100
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Adrian Hunter <adrian.hunter@...el.com>,
Ulf Hansson <ulf.hansson@...aro.org>,
linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH] mmc: sdhci: add static to !OF stub
The sdhci_get_compatibility() is not used outside of the unit:
drivers/mmc/host/sdhci-pltfm.c:76:6: error: no previous prototype for ‘sdhci_get_compatibility’ [-Werror=missing-prototypes]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
---
drivers/mmc/host/sdhci-pltfm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index 328b132bbe57..245e56324dff 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -73,7 +73,7 @@ static void sdhci_get_compatibility(struct platform_device *pdev)
host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL;
}
#else
-void sdhci_get_compatibility(struct platform_device *pdev) {}
+static void sdhci_get_compatibility(struct platform_device *pdev) {}
#endif /* CONFIG_OF */
void sdhci_get_property(struct platform_device *pdev)
--
2.34.1
Powered by blists - more mailing lists