Skip to contentSkip to conversation

mmc: mmci: stm32: make sdmmc_idma_validate_data static

PATCH In review Ben Dooks 2 participants 2 messages Oct 9, 2019 – Oct 18, 2019

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 mmc: mmci: stm32: make sdmmc_idma_validate_data static

Make sdmmc_idma_validate_data to avoid the following warning from sparse:

drivers/mmc/host/mmci_stm32_sdmmc.c:28:5: warning: symbol 'sdmmc_idma_validate_data' was not declared. Should it be static?

---
Cc: Ulf Hansson <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 drivers/mmc/host/mmci_stm32_sdmmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/mmci_stm32_sdmmc.c +2 -2
index 8e83ae6920ae..296be8a060a6 100644
@@ -25,8 +25,8 @@ struct sdmmc_priv {
 	void *sg_cpu;
 };
 
-int sdmmc_idma_validate_data(struct mmci_host *host,
-			     struct mmc_data *data)
+static int sdmmc_idma_validate_data(struct mmci_host *host,
+				    struct mmc_data *data)
 {
 	struct scatterlist *sg;
 	int i;
Signature · 1 line
2.23.0
#1 lore raw
Quoted 7 lines · Ben Dooks

Make sdmmc_idma_validate_data to avoid the following warning from sparse:

drivers/mmc/host/mmci_stm32_sdmmc.c:28:5: warning: symbol 'sdmmc_idma_validate_data' was not declared. Should it be static?

Applied for next, thanks!

Kind regards
Uffe

Quoted 29 lines

---
Cc: Ulf Hansson <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 drivers/mmc/host/mmci_stm32_sdmmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/host/mmci_stm32_sdmmc.c +2 -3
index 8e83ae6920ae..296be8a060a6 100644
@@ -25,8 +25,8 @@ struct sdmmc_priv {
        void *sg_cpu;
 };
 
-int sdmmc_idma_validate_data(struct mmci_host *host,
-                            struct mmc_data *data)
+static int sdmmc_idma_validate_data(struct mmci_host *host,
+                                   struct mmc_data *data)
 {
        struct scatterlist *sg;
        int i;
--

2.23.0