On Sun, Nov 14, 2021 at 01:24:16PM +0100, Miguel Ojeda wrote:
On Sun, Nov 14, 2021 at 12:07 PM Ard Biesheuvel
<ardb(a)kernel.org> wrote:
>
> +KBUILD_CFLAGS += $(call cc-option, -Wno-initializer-overrides)
I don't think we would need `cc-option`.
-Winitializer-overrides is the clang version of the flag, as opposed to
-Woverride-init for gcc. A compatibility flag was added in clang 8 so if
this is changed to
KBUILD_CFLAGS += -Wno-override-init
it should work for both compilers.
Cheers,
Nathan