lkml.org 
[lkml]   [2023]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] dmaengine: owl-dma: fix clang -Wvoid-pointer-to-enum-cast warning
Date

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


\
 
 \ /
  Last update: 2023-08-21 15:53    [W:0.261 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site