Re: [linux-next:master 6953/13205] drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nathan,

On Sat, Dec 12, 2020 at 5:03 PM Nathan Chancellor
<natechancellor@xxxxxxxxx> wrote:

> Correct. The clang developers explicitly wanted this behavior so I moved
> it under a new warning that could be disabled on regular builds but show
> up on W=1 in case people wanted to fix these occurrences.
>
> https://reviews.llvm.org/D72231
> https://github.com/ClangBuiltLinux/linux/issues/887
> 82f2bc2fcc01 ("kbuild: Disable -Wpointer-to-enum-cast")
>
> > Not sure how to make clang happy in this case.

Thanks for the clarification.

> Added a cast to unsigned long or uintptr_t before the cast to the enum
> should fix it.

Great, thanks. Maybe someone could send patches fixing these W=1 clang
warnings for the different subsystems.

Regards,

Fabio Estevam




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux