Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Dmitry V. Levin and committed by
David S. Miller
ea3ebc73 50ab3af1

+3
+1
include/uapi/linux/seg6.h
··· 15 15 #define _UAPI_LINUX_SEG6_H 16 16 17 17 #include <linux/types.h> 18 + #include <linux/in6.h> /* For struct in6_addr. */ 18 19 19 20 /* 20 21 * SRH
+2
include/uapi/linux/seg6_iptunnel.h
··· 14 14 #ifndef _UAPI_LINUX_SEG6_IPTUNNEL_H 15 15 #define _UAPI_LINUX_SEG6_IPTUNNEL_H 16 16 17 + #include <linux/seg6.h> /* For struct ipv6_sr_hdr. */ 18 + 17 19 enum { 18 20 SEG6_IPTUNNEL_UNSPEC, 19 21 SEG6_IPTUNNEL_SRH,