]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix alignment for batadv_coded_packet
authorSimon Wunderlich <sw@simonwunderlich.de>
Mon, 2 Dec 2013 19:38:30 +0000 (20:38 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 28 Dec 2013 11:51:15 +0000 (12:51 +0100)
commit8f4b81ed074dd34836ed2db24337ef05cc7d01fc
treea76d23a01a35243e8700168e7fdc8d12671ab476
parent966ebe935d918de4519ce8c1ca172e95285c469c
batman-adv: fix alignment for batadv_coded_packet

The compiler may decide to pad the structure, and then it does not
have the expected size of 46 byte. Fix this by moving it in the
pragma pack(2) part of the code.

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/packet.h