Messages in this thread | | | From | Fabio Estevam <> | Date | Wed, 25 May 2022 21:55:20 -0300 | Subject | Re: 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
| |