Commit ea3ebc73 authored by Dmitry V. Levin's avatar Dmitry V. Levin Committed by David S. Miller

uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors

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: a50a05f4 ("ipv6: sr: add missing Kbuild export for header files")
Signed-off-by: default avatarDmitry V. Levin <ldv@altlinux.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 50ab3af1
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#define _UAPI_LINUX_SEG6_H #define _UAPI_LINUX_SEG6_H
#include <linux/types.h> #include <linux/types.h>
#include <linux/in6.h> /* For struct in6_addr. */
/* /*
* SRH * SRH
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#ifndef _UAPI_LINUX_SEG6_IPTUNNEL_H #ifndef _UAPI_LINUX_SEG6_IPTUNNEL_H
#define _UAPI_LINUX_SEG6_IPTUNNEL_H #define _UAPI_LINUX_SEG6_IPTUNNEL_H
#include <linux/seg6.h> /* For struct ipv6_sr_hdr. */
enum { enum {
SEG6_IPTUNNEL_UNSPEC, SEG6_IPTUNNEL_UNSPEC,
SEG6_IPTUNNEL_SRH, SEG6_IPTUNNEL_SRH,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment