Skip to contentSkip to conversation

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

PATCH Superseded Dmitry V. Levin 3 participants 4 messages Feb 23, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 include/uapi/linux/seg6.h          | 1 +
 include/uapi/linux/seg6_iptunnel.h | 2 ++
 2 files changed, 3 insertions(+)
include/uapi/linux/seg6.h +1 -0
index 61df8d3..7278511 100644
@@ -15,6 +15,7 @@
 #define _UAPI_LINUX_SEG6_H
 
 #include <linux/types.h>
+#include <linux/in6.h>		/* For struct in6_addr. */
 
 /*
  * SRH
include/uapi/linux/seg6_iptunnel.h +2 -0
index 7a7183d..b6e5a0a 100644
@@ -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,
Signature · 1 line
ldv
#1 lore raw

PATCH v2 1/1 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")

---
v2: fixed "Fixes:" line

 include/uapi/linux/seg6.h          | 1 +
 include/uapi/linux/seg6_iptunnel.h | 2 ++
 2 files changed, 3 insertions(+)
include/uapi/linux/seg6.h +1 -0
index 61df8d3..7278511 100644
@@ -15,6 +15,7 @@
 #define _UAPI_LINUX_SEG6_H
 
 #include <linux/types.h>
+#include <linux/in6.h>		/* For struct in6_addr. */
 
 /*
  * SRH
include/uapi/linux/seg6_iptunnel.h +2 -0
index 7a7183d..b6e5a0a 100644
@@ -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,
Signature · 1 line
ldv
maintainer Applied
#2 lore raw

From: "Dmitry V. Levin" <[email protected]>
Date: Thu, 23 Feb 2017 14:30:34 +0300

Quoted 9 lines

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:

Quoted 7 lines

/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")

---
v2: fixed "Fixes:" line

Applied.

#3 lore raw
In reply to Dmitry V. Levin
Quoted 6 lines · Dmitry V. Levin

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];

Quoted 7 lines

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")

12 digits and space before ( as well.

Quoted 1 line

[...]

MBR, Sergei