Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1586590 > unrolled thread

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

Started by"Dmitry V. Levin" <ldv@altlinux.org>
First post2017-02-23 02:20 +0100
Last post2017-02-23 13:00 +0100
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-23 02:20 +0100
    [PATCH v2] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-23 12:40 +0100
      Re: [PATCH v2] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h  userspace compilation errors David Miller <davem@davemloft.net> - 2017-02-23 17:00 +0100
    Re: [PATCH] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h  userspace compilation errors Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2017-02-23 13:00 +0100

#1586590 — [PATCH] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors

From"Dmitry V. Levin" <ldv@altlinux.org>
Date2017-02-23 02:20 +0100
Subject[PATCH] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors
Message-ID<tdQeB-27X-7@gated-at.bofh.it>
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: Dmitry V. Levin <ldv@altlinux.org>
---
 include/uapi/linux/seg6.h          | 1 +
 include/uapi/linux/seg6_iptunnel.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/include/uapi/linux/seg6.h b/include/uapi/linux/seg6.h
index 61df8d3..7278511 100644
--- a/include/uapi/linux/seg6.h
+++ b/include/uapi/linux/seg6.h
@@ -15,6 +15,7 @@
 #define _UAPI_LINUX_SEG6_H
 
 #include <linux/types.h>
+#include <linux/in6.h>		/* For struct in6_addr. */
 
 /*
  * SRH
diff --git a/include/uapi/linux/seg6_iptunnel.h b/include/uapi/linux/seg6_iptunnel.h
index 7a7183d..b6e5a0a 100644
--- a/include/uapi/linux/seg6_iptunnel.h
+++ b/include/uapi/linux/seg6_iptunnel.h
@@ -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,
-- 
ldv

[toc] | [next] | [standalone]


#1586829 — [PATCH v2] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors

From"Dmitry V. Levin" <ldv@altlinux.org>
Date2017-02-23 12:40 +0100
Subject[PATCH v2] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors
Message-ID<tdZUB-Ex-7@gated-at.bofh.it>
In reply to#1586590
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>
---
v2: fixed "Fixes:" line

 include/uapi/linux/seg6.h          | 1 +
 include/uapi/linux/seg6_iptunnel.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/include/uapi/linux/seg6.h b/include/uapi/linux/seg6.h
index 61df8d3..7278511 100644
--- a/include/uapi/linux/seg6.h
+++ b/include/uapi/linux/seg6.h
@@ -15,6 +15,7 @@
 #define _UAPI_LINUX_SEG6_H
 
 #include <linux/types.h>
+#include <linux/in6.h>		/* For struct in6_addr. */
 
 /*
  * SRH
diff --git a/include/uapi/linux/seg6_iptunnel.h b/include/uapi/linux/seg6_iptunnel.h
index 7a7183d..b6e5a0a 100644
--- a/include/uapi/linux/seg6_iptunnel.h
+++ b/include/uapi/linux/seg6_iptunnel.h
@@ -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,
-- 
ldv

[toc] | [prev] | [next] | [standalone]


#1586979 — Re: [PATCH v2] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors

FromDavid Miller <davem@davemloft.net>
Date2017-02-23 17:00 +0100
SubjectRe: [PATCH v2] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors
Message-ID<te3Yd-3fj-1@gated-at.bofh.it>
In reply to#1586829
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Thu, 23 Feb 2017 14:30:34 +0300

> 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>
> ---
> v2: fixed "Fixes:" line

Applied.

[toc] | [prev] | [next] | [standalone]


#1586846 — Re: [PATCH] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors

FromSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Date2017-02-23 13:00 +0100
SubjectRe: [PATCH] uapi: fix linux/seg6.h and linux/seg6_iptunnel.h userspace compilation errors
Message-ID<te0dY-Mt-27@gated-at.bofh.it>
In reply to#1586590
On 2/23/2017 4:13 AM, Dmitry V. Levin wrote:

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

    12 digits and space before ( as well.

> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
[...]

MBR, Sergei

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web