Hi Nathan, On Sat, Dec 12, 2020 at 5:03 PM Nathan Chancellor 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