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