Re: linux-next: lots of errors/warnings from the -Werror=missing-prototypes addition
From: Andrew Morton
Date: Wed Nov 29 2023 - 18:10:35 EST
On Wed, 29 Nov 2023 23:51:04 +0100 "Arnd Bergmann" <arnd@xxxxxxxx> wrote:
> I did all my testing with CONFIG_WERROR force-enabled, so
> the bit I missed here is that at least three architectures
> that are missing fixes also set -Werror: mips, sparc and alpha.
>
> How about adding a patch to no longer force -Werror for
> these?
These architectures are doing it wrong, aren't they? They should be
using the CONFIG_WERROR infrastructure rather than hard-coding it? If
so then sure, a standalone patch to clean that up sounds sounds
appropriate. I guess it should precede "Makefile.extrawarn: turn on
missing-prototypes globally".