Re: [PATCH] ARM: pxa: mainstone: avoid -Woverride-init warning

Arnd Bergmann
2021-04-01T10:25:56Z

From: Arnd Bergmann <arnd@arndb.de>

On Tue, 23 Mar 2021 14:08:27 +0100, Arnd Bergmann wrote:
> The default initializer at the start of the array causes a warning
> when building with W=1:
>
> In file included from arch/arm/mach-pxa/mainstone.c:47:
> arch/arm/mach-pxa/mainstone.h:124:33: error: initialized field overwritten [-Werror=override-init]
> 124 | #define MAINSTONE_IRQ(x) (MAINSTONE_NR_IRQS + (x))
> | ^
> arch/arm/mach-pxa/mainstone.h:133:33: note: in expansion of macro 'MAINSTONE_IRQ'
> 133 | #define MAINSTONE_S0_CD_IRQ MAINSTONE_IRQ(9)
> | ^~~~~~~~~~~~~
> arch/arm/mach-pxa/mainstone.c:506:15: note: in expansion of macro 'MAINSTONE_S0_CD_IRQ'
> 506 | [5] = MAINSTONE_S0_CD_IRQ,
> | ^~~~~~~~~~~~~~~~~~~
>
> [...]

Applied to arm/fixes.

[1/1] ARM: pxa: mainstone: avoid -Woverride-init warning
commit: b08f9cc97c8e1be0f06fc6e5d467ed389a4161ff

Arnd