History

soc: fsl: qman: fix -Wpacked-not-aligned warnings

This fixes compile warnings from the -Wpacked-not-aligned option. In file included from ../drivers/crypto/caam/qi.c:12: ../include/soc/fsl/qman.h:259:1: warning: alignment 1 of ‘struct qm_dqrr_entry’ is less than 8 [-Wpacked-not-aligned] } __packed; ^ ../include/soc/fsl/qman.h:292:2: warning: alignment 1 of ‘struct <anonymous>’ is less than 8 [-Wpacked-not-aligned] } __packed ern; ^

Li Yang committed 6 years ago

Commit 1fe44191 parent 9123e3a1 file · +2 −2Browse files

Unified · Split

include/soc/fsl/qman.h+2−2
@@ -256,7 +256,7 @@ struct qm_dqrr_entry { · 255 unmodified lines
256256 __be32 context_b;
257257 struct qm_fd fd;
258258 u8 __reserved4[32];
259−} __packed;
259+} __packed __aligned(64);
260260 #define QM_DQRR_VERB_VBIT 0x80
261261 #define QM_DQRR_VERB_MASK 0x7f /* where the verb contains; */
262262 #define QM_DQRR_VERB_FRAME_DEQUEUE 0x60 /* "this format" */
@@ -289,7 +289,7 @@ union qm_mr_entry { · 26 unmodified lines
289289 __be32 tag;
290290 struct qm_fd fd;
291291 u8 __reserved1[32];
292− } __packed ern;
292+ } __packed __aligned(64) ern;
293293 struct {
294294 u8 verb;
295295 u8 fqs; /* Frame Queue Status */