Linux 5.18 To Try Again For x86/x86_64 "WERROR" Default
Last year with Linux 5.15 the kernel tried enabling -Werror by default for treating all compiler warnings as errors. The motivation was to ensure compiler warnings are treated serious by developers and for new code not to introduce any new warnings. That change caused lots of build-time pains for the Linux kernel and thus scaled it back.
Now with Linux 5.18 with today's pull request, CONFIG_WERROR would be enabled by default for x86/x86_64 defconfig builds for re-enabling that "-Werror" behavior.
A last batch of x86 updates sent in ahead of the Linux 5.18 merge window closure.
This should make Linus Torvalds happy given his earlier comment on the matter:
"EVERYBODY should have CONFIG_WERROR=y on at least x86-64 and other serious architectures, unless you have some completely random experimental (and broken) compiler.
New compiler warnings are not acceptable."
This pull request has that defconfig enabling for x86/x86_64 along with a change around the dynamic XSTATE enabling via prctl(), handling supervisor states correctly in the FPU/XSTATE code, and other fixes / last minute work.