[PATCH 11/14] KVM: selftests: Disable "gnu-variable-sized-type-not-at-end" warning

Paolo Bonzini pbonzini at redhat.com
Wed Jan 11 08:23:00 PST 2023


On 12/13/22 03:13, Sean Christopherson wrote:
> AFAICT, gcc stopped treating unknown "-Wno" flags as unconditional errors starting
> with gcc-4.4, and the kernel's min supported version is 5.1.  gcc-4.4 through
> gcc-9.5 all print a mild warning if there's a different error, but otherwise
> silently ignore the uknown "-Wno".
> 
>    cc1: warning: unrecognized command line option '-Wno-gnu-variable-sized-type-not-at-end'

scripts/Makefile.compiler has cc-disable-warning for this, we can copy 
it to tools/.

Paolo




More information about the linux-riscv mailing list