]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 23 Feb 2017 11:30:34 +0000 (14:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2017 15:55:08 +0000 (10:55 -0500)
Include <linux/in6.h> in uapi/linux/seg6.h to fix the following
linux/seg6.h userspace compilation error:

/usr/include/linux/seg6.h:31:18: error: array type has incomplete element type 'struct in6_addr'
  struct in6_addr segments[0];

Include <linux/seg6.h> in uapi/linux/seg6_iptunnel.h to fix
the following linux/seg6_iptunnel.h userspace compilation error:

/usr/include/linux/seg6_iptunnel.h:26:21: error: array type has incomplete element type 'struct ipv6_sr_hdr'
  struct ipv6_sr_hdr srh[0];

Fixes: a50a05f497a2 ("ipv6: sr: add missing Kbuild export for header files")
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/seg6.h
include/uapi/linux/seg6_iptunnel.h

index 61df8d392f41f4c197419b2260481d1a41897318..7278511d339ec271f9106c8327bd9b09350809a6 100644 (file)
@@ -15,6 +15,7 @@
 #define _UAPI_LINUX_SEG6_H
 
 #include <linux/types.h>
+#include <linux/in6.h>         /* For struct in6_addr. */
 
 /*
  * SRH
index 7a7183d4062af9788fd7358278d74d83aef70b18..b6e5a0a1afd7a180938ba75250c7858c65868dc5 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef _UAPI_LINUX_SEG6_IPTUNNEL_H
 #define _UAPI_LINUX_SEG6_IPTUNNEL_H
 
+#include <linux/seg6.h>                /* For struct ipv6_sr_hdr. */
+
 enum {
        SEG6_IPTUNNEL_UNSPEC,
        SEG6_IPTUNNEL_SRH,