[PATCH] soc/fsl: qbman: fix conflicting alignment attributes
Arnd Bergmann
arnd at kernel.org
Thu Apr 1 21:23:30 AEDT 2021
From: Arnd Bergmann <arnd at arndb.de>
On Tue, 23 Mar 2021 14:15:23 +0100, Arnd Bergmann wrote:
> When building with W=1, gcc points out that the __packed attribute
> on struct qm_eqcr_entry conflicts with the 8-byte alignment
> attribute on struct qm_fd inside it:
>
> drivers/soc/fsl/qbman/qman.c:189:1: error: alignment 1 of 'struct qm_eqcr_entry' is less than 8 [-Werror=packed-not-aligned]
>
> I assume that the alignment attribute is the correct one, and
> that qm_eqcr_entry cannot actually be unaligned in memory,
> so add the same alignment on the outer struct.
Applied to arm/fixes
[1/1] soc/fsl: qbman: fix conflicting alignment attributes
commit: b9ab2619047edc1c6c07dc68963d84a5979f0abe
Arnd
More information about the Linuxppc-dev
mailing list