]> Git Repo - linux.git/commitdiff
staging: dpaa2-switch: pack the firmware command structures
authorIoana Ciornei <[email protected]>
Thu, 19 Nov 2020 16:50:17 +0000 (18:50 +0200)
committerGreg Kroah-Hartman <[email protected]>
Mon, 23 Nov 2020 17:02:09 +0000 (18:02 +0100)
The structures defined in the dpsw-cmd.h header file describe exactly
the layout of commands accepted by the MC firmware. Make sure that all
these structures are packed.

Signed-off-by: Ioana Ciornei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h

index c9fb688f387cfed145a79b93d2ad3b0f005a38f2..450841cc6ca87ac11592574a39bbaf8517d85dd6 100644 (file)
@@ -86,6 +86,7 @@
 #define dpsw_get_bit(var, bit) \
        (((var)  >> (bit)) & GENMASK(0, 0))
 
+#pragma pack(push, 1)
 struct dpsw_cmd_open {
        __le32 dpsw_id;
 };
@@ -385,4 +386,5 @@ struct dpsw_cmd_if_set_mac_addr {
        u8 mac_addr[6];
 };
 
+#pragma pack(pop)
 #endif /* __FSL_DPSW_CMD_H */
This page took 0.078758 seconds and 4 git commands to generate.