mmc: mmci: stm32: make sdmmc_idma_validate_data static
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 9 Oct 2019 11:54:15 +0000 (12:54 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 13 Nov 2019 15:10:16 +0000 (16:10 +0100)
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?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci_stm32_sdmmc.c

index 1de855d..a4f7e8e 100644 (file)
@@ -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;