mmc: mmci: stm32: make sdmmc_idma_validate_data static
Subsystems (2)
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
@@ -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
Quoted 7 lines · Ben Dooks
Make
sdmmc_idma_validate_datato 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 <[email protected]>
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@@ -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