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; ^
Unified · Split
| @@ -256,7 +256,7 @@ struct qm_dqrr_entry { · 255 unmodified lines | ||
| 256 | 256 | __be32 context_b; |
| 257 | 257 | struct qm_fd fd; |
| 258 | 258 | u8 __reserved4[32]; |
| 259 | −} __packed; | |
| 259 | +} __packed __aligned(64); | |
| 260 | 260 | #define QM_DQRR_VERB_VBIT 0x80 |
| 261 | 261 | #define QM_DQRR_VERB_MASK 0x7f /* where the verb contains; */ |
| 262 | 262 | #define QM_DQRR_VERB_FRAME_DEQUEUE 0x60 /* "this format" */ |
| @@ -289,7 +289,7 @@ union qm_mr_entry { · 26 unmodified lines | ||
| 289 | 289 | __be32 tag; |
| 290 | 290 | struct qm_fd fd; |
| 291 | 291 | u8 __reserved1[32]; |
| 292 | − } __packed ern; | |
| 292 | + } __packed __aligned(64) ern; | |
| 293 | 293 | struct { |
| 294 | 294 | u8 verb; |
| 295 | 295 | u8 fqs; /* Frame Queue Status */ |