Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ioana Ciornei and committed by
Greg Kroah-Hartman
f65b243d dab48127

+2
+2
drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h
··· 86 86 #define dpsw_get_bit(var, bit) \ 87 87 (((var) >> (bit)) & GENMASK(0, 0)) 88 88 89 + #pragma pack(push, 1) 89 90 struct dpsw_cmd_open { 90 91 __le32 dpsw_id; 91 92 }; ··· 386 385 u8 mac_addr[6]; 387 386 }; 388 387 388 + #pragma pack(pop) 389 389 #endif /* __FSL_DPSW_CMD_H */