]> git.baikalelectronics.ru Git - kernel.git/commit
net: hsr: Add __packed to struct hsr_sup_tlv.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 15 Sep 2023 18:10:03 +0000 (20:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:56:57 +0000 (14:56 +0200)
commitb09c1359e4f08bc8369357cf4ec4a08150b47888
treedadc52a3cf4758be2c3c087ad1050ddbe528cc13
parent97788f0757bd028f4f3eece5b113966de6f60a17
net: hsr: Add __packed to struct hsr_sup_tlv.

[ Upstream commit fbd825fcd7dd4c11d4c48c3d0adc248a4a0ce90b ]

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>
net/hsr/hsr_main.h