summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2020-11-19 18:50:17 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-23 18:02:09 +0100
commitf65b243d6ab856d768aa8039da8a2a47603b8847 (patch)
tree8a2c74ef50e2b29f0ec59116ffe85132da3e443e /drivers
parentdab4812705c91f35e54ca8e605ca2891a364d65c (diff)
downloadlinux-stable-f65b243d6ab856d768aa8039da8a2a47603b8847.tar.gz
linux-stable-f65b243d6ab856d768aa8039da8a2a47603b8847.tar.bz2
linux-stable-f65b243d6ab856d768aa8039da8a2a47603b8847.zip
staging: dpaa2-switch: pack the firmware command structures
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 <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20201119165017.806696-4-ciorneiioana@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h b/drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h
index c9fb688f387c..450841cc6ca8 100644
--- a/drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h
+++ b/drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h
@@ -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 */