diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-03-23 14:15:23 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2021-04-01 16:32:37 +0200 |
commit | 040f31196e8b2609613f399793b9225271b79471 (patch) | |
tree | bde0a96005b1a0beb565da19727f2fc867a3c0ce /virt | |
parent | 844b85dda2f569943e1e018fdd63b6f7d1d6f08e (diff) |
soc/fsl: qbman: fix conflicting alignment attributes
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.
Fixes: c535e923bb97 ("soc/fsl: Introduce DPAA 1.x QMan device driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210323131530.2619900-1-arnd@kernel.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions