Re: drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void *'

From: Fabio Estevam
Date: Wed May 25 2022 - 20:56:00 EST


Hi Nathan,

On Wed, May 25, 2022 at 9:38 PM Nathan Chancellor <nathan@xxxxxxxxxx> 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