Re: [PATCH] dmaengine: owl-dma: fix clang -Wvoid-pointer-to-enum-cast warning

From: Vinod Koul
Date: Mon Aug 21 2023 - 09:52:02 EST



On Wed, 16 Aug 2023 20:12:50 +0000, Justin Stitt wrote:
> When building with clang 18 I see the following warning:
> | drivers/dma/owl-dma.c:1119:14: warning: cast to smaller integer type
> | 'enum owl_dma_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
> | 1119 | od->devid = (enum owl_dma_id)of_device_get_match_data(&pdev->dev);
>
> This is due to the fact that `of_device_get_match_data()` returns a
> void* while `enum owl_dma_id` has the size of an int.
>
> [...]

Applied, thanks!

[1/1] dmaengine: owl-dma: fix clang -Wvoid-pointer-to-enum-cast warning
commit: 1fbda5f4c7c1c8bd51cd3bc3d2ff19176c696b74

Best regards,
--
~Vinod