[linux-next] LinuxNextTracking branch, master, updated. next-20140106

batman at open-mesh.org batman at open-mesh.org
Tue Jan 7 00:19:22 CET 2014


The following commit has been merged in the master branch:
commit 46b76e0b8b5e21fa5a2387d6f72b193514e7f722
Author: Simon Wunderlich <sw at simonwunderlich.de>
Date:   Mon Dec 2 20:38:30 2013 +0100

    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 at simonwunderlich.de>
    Signed-off-by: Marek Lindner <mareklindner at neomailbox.ch>
    Signed-off-by: Antonio Quartulli <antonio at meshcoding.com>

diff --git a/net/batman-adv/packet.h b/net/batman-adv/packet.h
index 207459b..10597a6 100644
--- a/net/batman-adv/packet.h
+++ b/net/batman-adv/packet.h
@@ -315,8 +315,6 @@ struct batadv_bcast_packet {
 	 */
 };
 
-#pragma pack()
-
 /**
  * struct batadv_coded_packet - network coded packet
  * @header: common batman packet header and ttl of first included packet
@@ -349,6 +347,8 @@ struct batadv_coded_packet {
 	__be16   coded_len;
 };
 
+#pragma pack()
+
 /**
  * struct batadv_unicast_tvlv - generic unicast packet with tvlv payload
  * @header: common batman packet header

-- 
LinuxNextTracking


More information about the linux-merge mailing list