* [PATCH -next] dmaengine: hidma: Fix cast to smaller integer type warning
@ 2023-05-25 9:16 Yang Li
0 siblings, 0 replies; only message in thread
From: Yang Li @ 2023-05-25 9:16 UTC (permalink / raw)
To: agross
Cc: andersson, okaya, konrad.dybcio, vkoul, linux-arm-kernel,
linux-arm-msm, dmaengine, linux-kernel, Yang Li
Fix the following warning:
drivers/dma/qcom/hidma.c:748:8: warning: cast to smaller integer type 'enum hidma_cap' from 'const void *'
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
drivers/dma/qcom/hidma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c
index 344525c3a32f..0165e2fa7be4 100644
--- a/drivers/dma/qcom/hidma.c
+++ b/drivers/dma/qcom/hidma.c
@@ -745,7 +745,7 @@ static bool hidma_test_capability(struct device *dev, enum hidma_cap test_cap)
{
enum hidma_cap cap;
- cap = (enum hidma_cap) device_get_match_data(dev);
+ cap = (unsigned long) device_get_match_data(dev);
return cap ? ((cap & test_cap) > 0) : 0;
}
--
2.20.1.7.g153144c
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-25 9:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-25 9:16 [PATCH -next] dmaengine: hidma: Fix cast to smaller integer type warning Yang Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®