mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
net: hsr: Add __packed to struct hsr_sup_tlv.
[ Upstream commit fbd825fcd7
]
Struct hsr_sup_tlv describes HW layout and therefore it needs a __packed
attribute to ensure the compiler does not add any padding.
Due to the size and __packed attribute of the structs that use
hsr_sup_tlv it has no functional impact.
Add __packed to struct hsr_sup_tlv.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c656c63e62
commit
10ee8a00cb
@ -83,7 +83,7 @@ struct hsr_vlan_ethhdr {
|
||||
struct hsr_sup_tlv {
|
||||
u8 HSR_TLV_type;
|
||||
u8 HSR_TLV_length;
|
||||
};
|
||||
} __packed;
|
||||
|
||||
/* HSR/PRP Supervision Frame data types.
|
||||
* Field names as defined in the IEC:2010 standard for HSR.
|
||||
|
Loading…
Reference in New Issue
Block a user