linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] uapi: fix linux/mroute.h userspace compilation errors
@ 2017-02-15 20:06 Dmitry V. Levin
  2017-02-16 15:04 ` [PATCH v2] " Dmitry V. Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2017-02-15 20:06 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel

Include <linux/in.h> to fix the following linux/mroute.h userspace
compilation errors:

/usr/include/linux/mroute.h:58:18: error: field 'vifc_lcl_addr' has incomplete type
  struct in_addr vifc_lcl_addr;     /* Local interface address */
/usr/include/linux/mroute.h:61:17: error: field 'vifc_rmt_addr' has incomplete type
  struct in_addr vifc_rmt_addr; /* IPIP tunnel addr */
/usr/include/linux/mroute.h:72:17: error: field 'mfcc_origin' has incomplete type
  struct in_addr mfcc_origin;  /* Origin of mcast */
/usr/include/linux/mroute.h:73:17: error: field 'mfcc_mcastgrp' has incomplete type
  struct in_addr mfcc_mcastgrp;  /* Group in question */
/usr/include/linux/mroute.h:84:17: error: field 'src' has incomplete type
  struct in_addr src;
/usr/include/linux/mroute.h:85:17: error: field 'grp' has incomplete type
  struct in_addr grp;
/usr/include/linux/mroute.h:109:17: error: field 'im_src' has incomplete type
  struct in_addr im_src,im_dst;
/usr/include/linux/mroute.h:109:24: error: field 'im_dst' has incomplete type
  struct in_addr im_src,im_dst;

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 include/uapi/linux/mroute.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/mroute.h b/include/uapi/linux/mroute.h
index cf94301..1fe4c1e 100644
--- a/include/uapi/linux/mroute.h
+++ b/include/uapi/linux/mroute.h
@@ -3,6 +3,7 @@
 
 #include <linux/sockios.h>
 #include <linux/types.h>
+#include <linux/in.h>		/* For struct in_addr. */
 
 /* Based on the MROUTING 3.5 defines primarily to keep
  * source compatibility with BSD.
-- 
ldv

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2] uapi: fix linux/mroute.h userspace compilation errors
  2017-02-15 20:06 [PATCH] uapi: fix linux/mroute.h userspace compilation errors Dmitry V. Levin
@ 2017-02-16 15:04 ` Dmitry V. Levin
  2017-02-19 23:16   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2017-02-16 15:04 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, linux-kernel

Include <linux/in.h> to fix the following linux/mroute.h userspace
compilation errors:

/usr/include/linux/mroute.h:58:18: error: field 'vifc_lcl_addr' has incomplete type
  struct in_addr vifc_lcl_addr;     /* Local interface address */
/usr/include/linux/mroute.h:61:17: error: field 'vifc_rmt_addr' has incomplete type
  struct in_addr vifc_rmt_addr; /* IPIP tunnel addr */
/usr/include/linux/mroute.h:72:17: error: field 'mfcc_origin' has incomplete type
  struct in_addr mfcc_origin;  /* Origin of mcast */
/usr/include/linux/mroute.h:73:17: error: field 'mfcc_mcastgrp' has incomplete type
  struct in_addr mfcc_mcastgrp;  /* Group in question */
/usr/include/linux/mroute.h:84:17: error: field 'src' has incomplete type
  struct in_addr src;
/usr/include/linux/mroute.h:85:17: error: field 'grp' has incomplete type
  struct in_addr grp;
/usr/include/linux/mroute.h:109:17: error: field 'im_src' has incomplete type
  struct in_addr im_src,im_dst;
/usr/include/linux/mroute.h:109:24: error: field 'im_dst' has incomplete type
  struct in_addr im_src,im_dst;

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
v2: Cc'ed netdev

 include/uapi/linux/mroute.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/mroute.h b/include/uapi/linux/mroute.h
index cf94301..1fe4c1e 100644
--- a/include/uapi/linux/mroute.h
+++ b/include/uapi/linux/mroute.h
@@ -3,6 +3,7 @@
 
 #include <linux/sockios.h>
 #include <linux/types.h>
+#include <linux/in.h>		/* For struct in_addr. */
 
 /* Based on the MROUTING 3.5 defines primarily to keep
  * source compatibility with BSD.
-- 
ldv

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] uapi: fix linux/mroute.h userspace compilation errors
  2017-02-16 15:04 ` [PATCH v2] " Dmitry V. Levin
@ 2017-02-19 23:16   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2017-02-19 23:16 UTC (permalink / raw)
  To: ldv; +Cc: netdev, linux-kernel

From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Thu, 16 Feb 2017 18:04:46 +0300

> Include <linux/in.h> to fix the following linux/mroute.h userspace
> compilation errors:
> 
> /usr/include/linux/mroute.h:58:18: error: field 'vifc_lcl_addr' has incomplete type
>   struct in_addr vifc_lcl_addr;     /* Local interface address */
> /usr/include/linux/mroute.h:61:17: error: field 'vifc_rmt_addr' has incomplete type
>   struct in_addr vifc_rmt_addr; /* IPIP tunnel addr */
> /usr/include/linux/mroute.h:72:17: error: field 'mfcc_origin' has incomplete type
>   struct in_addr mfcc_origin;  /* Origin of mcast */
> /usr/include/linux/mroute.h:73:17: error: field 'mfcc_mcastgrp' has incomplete type
>   struct in_addr mfcc_mcastgrp;  /* Group in question */
> /usr/include/linux/mroute.h:84:17: error: field 'src' has incomplete type
>   struct in_addr src;
> /usr/include/linux/mroute.h:85:17: error: field 'grp' has incomplete type
>   struct in_addr grp;
> /usr/include/linux/mroute.h:109:17: error: field 'im_src' has incomplete type
>   struct in_addr im_src,im_dst;
> /usr/include/linux/mroute.h:109:24: error: field 'im_dst' has incomplete type
>   struct in_addr im_src,im_dst;
> 
> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>

Applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-19 23:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15 20:06 [PATCH] uapi: fix linux/mroute.h userspace compilation errors Dmitry V. Levin
2017-02-16 15:04 ` [PATCH v2] " Dmitry V. Levin
2017-02-19 23:16   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).