ar71xx: fix packed-not-aligned error with GCC 8.
[openwrt/openwrt.git] / target / linux / ar71xx / patches-4.14 / 910-unaligned_access_hacks.patch
index c642176d1e75b491985ee7b2e0486f24d7dd01dd..99624f07c16f17026df4b594883e902f72a383cd 100644 (file)
  struct ip_auth_hdr {
 --- a/include/uapi/linux/ipv6.h
 +++ b/include/uapi/linux/ipv6.h
+@@ -104,7 +104,7 @@ struct ipv6_destopt_hao {
+       __u8                    type;
+       __u8                    length;
+       struct in6_addr         addr;
+-} __attribute__((packed));
++} __attribute__((packed, aligned(2)));
+ /*
+  *    IPv6 fixed header
 @@ -131,7 +131,7 @@ struct ipv6hdr {
  
        struct  in6_addr        saddr;