[arm-platforms:hack/m1-pmu 8/8] drivers/perf/apple_m1_cpu_pmu.c:100:32: warning: initializer overrides prior initialization of this subobject

Nathan Chancellor nathan at kernel.org
Sun Nov 14 13:42:06 PST 2021


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 at 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



More information about the linux-arm-kernel mailing list