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 1de855d29ad4c4f138099487aca96feddb981fa2..a4f7e8e689d3a16190ed67114ce7da06b49766f7 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;