Skip to content

Commit

Permalink
mmc: mmci: stm32: make sdmmc_idma_validate_data static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
bjdooks-ct authored and storulf committed Nov 13, 2019
1 parent 315e3bd commit 61a14e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/host/mmci_stm32_sdmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 61a14e5

Please sign in to comment.