]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mmc_spi: Fix mmc_spi_dma_alloc() return type for !HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 14 Sep 2020 09:42:43 +0000 (11:42 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Sep 2020 09:46:16 +0000 (11:46 +0200)
commit81e62ac0088d13c8ca53927ce8a99a8aead5e108
tree2dc255566112072a4bf017f964b6aed1d9a1ca84
parent64b373fbb6fdd3de02fbd79d01307f33f3956f19
mmc: mmc_spi: Fix mmc_spi_dma_alloc() return type for !HAS_DMA

If CONFIG_NO_DMA=y (e.g. Sun-3 allmodconfig):

    drivers/mmc/host/mmc_spi.c:1323:15: warning: return type defaults to ‘int’ [-Wreturn-type]
     static inline mmc_spi_dma_alloc(struct mmc_spi_host *host) { return 0; }
   ^~~~~~~~~~~~~~~~~

Fix this by adding the missing return type.

Fixes: 023aa8626c05b2d3 ("mmc: mmc_spi: Allow the driver to be built when CONFIG_HAS_DMA is unset")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200914094243.3912-1-geert@linux-m68k.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmc_spi.c