[Linux-stm32] [PATCH] mmc: mmci: stm32: make sdmmc_idma_validate_data static

Ludovic BARRE ludovic.barre at st.com
Wed Oct 9 12:13:34 UTC 2019



Le 10/9/19 à 1:54 PM, Ben Dooks a écrit :
> 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 at codethink.co.uk>

Reviewed-by: Ludovic Barre <ludovic.barre at st.com>

> ---
> Cc: Ulf Hansson <ulf.hansson at linaro.org>
> Cc: Maxime Coquelin <mcoquelin.stm32 at gmail.com>
> Cc: Alexandre Torgue <alexandre.torgue at st.com>
> Cc: linux-mmc at vger.kernel.org
> Cc: linux-stm32 at st-md-mailman.stormreply.com
> Cc: linux-arm-kernel at lists.infradead.org
> ---
>   drivers/mmc/host/mmci_stm32_sdmmc.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/host/mmci_stm32_sdmmc.c b/drivers/mmc/host/mmci_stm32_sdmmc.c
> index 8e83ae6920ae..296be8a060a6 100644
> --- a/drivers/mmc/host/mmci_stm32_sdmmc.c
> +++ b/drivers/mmc/host/mmci_stm32_sdmmc.c
> @@ -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;
> 



More information about the Linux-stm32 mailing list