summaryrefslogtreecommitdiff
path: root/drivers/memstick
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2020-09-14 11:42:43 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2020-09-14 11:46:16 +0200
commit14801c624066a55139c2c57963eb1b859d0a316a (patch)
tree2dc255566112072a4bf017f964b6aed1d9a1ca84 /drivers/memstick
parentf0c393e2104e48c8a881719a8bd37996f71b0aee (diff)
downloadlinux-next-14801c624066a55139c2c57963eb1b859d0a316a.tar.gz
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: a395acf0f6dc6409 ("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>
Diffstat (limited to 'drivers/memstick')
0 files changed, 0 insertions, 0 deletions