[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200119034902.20688-1-zhang.chunyan@linaro.org>
Date: Sun, 19 Jan 2020 11:49:02 +0800
From: Chunyan Zhang <zhang.lyra@...il.com>
To: Ulf Hansson <ulf.hansson@...aro.org>,
Adrian Hunter <adrian.hunter@...el.com>
Cc: linux-mmc@...r.kernel.org, Faiz Abbas <faiz_abbas@...com>,
Chunyan Zhang <zhang.chunyan@...aro.org>,
linux-kernel@...r.kernel.org, Chunyan Zhang <zhang.lyra@...il.com>,
kbuild test robot <lkp@...el.com>
Subject: [PATCH] mmc: sdhci: fix an issue of mixing different types
Fix an issue reported by sparse, since different type of parameter is
used on calling dmaengine_prep_slave_sg().
Fixes: 36e1da441fec (mmc: sdhci: add support for using external DMA devices)
Reported-by: kbuild test robot <lkp@...el.com>
Signed-off-by: Chunyan Zhang <zhang.chunyan@...aro.org>
---
drivers/mmc/host/sdhci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 30b5a624b50e..4503009f993b 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1235,8 +1235,8 @@ static int sdhci_external_dma_setup(struct sdhci_host *host,
return -EINVAL;
desc = dmaengine_prep_slave_sg(chan, data->sg, data->sg_len,
- mmc_get_dma_dir(data),
- DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
+ (enum dma_transfer_direction) mmc_get_dma_dir(data),
+ DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
if (!desc)
return -EINVAL;
--
2.20.1
Powered by blists - more mailing lists