lkml.org 
[lkml]   [2022]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void *'
Hi Nathan,

On Wed, May 25, 2022 at 9:38 PM Nathan Chancellor <nathan@kernel.org> wrote:

> Either an intermediate cast to uintptr_t or unsigned long or replacing
> the enum cast with one of those should work. See commits:
>
> 2602dc10f9d9 ("memory: renesas-rpc-if: Silence clang warning")
> 10462b3558d4 ("can: mcp251x: mcp251x_can_probe(): silence clang warning")
> 83415669d8d8 ("can: hi311x: hi3110_can_probe(): silence clang warning")
> be5aeee30e45 ("scsi: fcoe: Suppress a compiler warning")

Thanks for sharing these commits.

I have submitted a patch.

Cheers

\
 
 \ /
  Last update: 2022-05-26 02:57    [W:0.029 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site