* Re: [PATCH v05 66/72] uapi icmp.h: glibc netinet/ip_icmp.h header file compatibility fixes [not found] ` <20160822.163303.1956681667227236700.davem@davemloft.net> @ 2016-08-23 21:21 ` Mikko Rapeli 2016-08-23 23:38 ` David Miller 0 siblings, 1 reply; 3+ messages in thread From: Mikko Rapeli @ 2016-08-23 21:21 UTC (permalink / raw) To: David Miller, netdev Cc: linux-kernel, edumazet, nicolas.dichtel, ralf, linux-hams On Mon, Aug 22, 2016 at 04:32:51PM -0700, David Miller wrote: > You have to post this properly to the netdev list. > > If netdev is not CC:'d it doesn't get properly logged in patchwork, > and won't be applied. Sorry, get_maintainers.pl did not find netdev list for these patches. Could you update MAINTAINERS so that networking stuff from include/linux/uapi/ finds netdev? I could propose patches but they are bound to be incomplete so networking devs could do this faster and with fewer review iterations. This problem seems to be quite common though. Maybe the uapi split did not update MAINTAINER file with include/uapi files. -Mikko ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v05 66/72] uapi icmp.h: glibc netinet/ip_icmp.h header file compatibility fixes 2016-08-23 21:21 ` [PATCH v05 66/72] uapi icmp.h: glibc netinet/ip_icmp.h header file compatibility fixes Mikko Rapeli @ 2016-08-23 23:38 ` David Miller 0 siblings, 0 replies; 3+ messages in thread From: David Miller @ 2016-08-23 23:38 UTC (permalink / raw) To: mikko.rapeli Cc: netdev, linux-kernel, edumazet, nicolas.dichtel, ralf, linux-hams From: Mikko Rapeli <mikko.rapeli@iki.fi> Date: Wed, 24 Aug 2016 00:21:45 +0300 > I could propose patches but they are bound to be incomplete so > networking devs could do this faster and with fewer review > iterations. If I did it I'm seriously not going to go any further than taking the diffstat of your patches and using that to add entries to MAINTAINERS. So you could do it equally as well. I don't have time for an exhaustive add. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <1471890809-4383-1-git-send-email-mikko.rapeli@iki.fi>]
* [PATCH v05 66/72] uapi icmp.h: glibc netinet/ip_icmp.h header file compatibility fixes [not found] <1471890809-4383-1-git-send-email-mikko.rapeli@iki.fi> @ 2016-08-22 18:33 ` Mikko Rapeli 0 siblings, 0 replies; 3+ messages in thread From: Mikko Rapeli @ 2016-08-22 18:33 UTC (permalink / raw) To: linux-kernel; +Cc: Mikko Rapeli, David S. Miller, Eric Dumazet, Nicolas Dichtel Fixes this userspace compile error when glibc netinet/ip_icmp.h is included before linux/icmp.h: linux/icmp.h:68:8: error: redefinition of ‘struct icmphdr’ Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi> --- include/uapi/linux/icmp.h | 4 +++- include/uapi/linux/libc-compat.h | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/icmp.h b/include/uapi/linux/icmp.h index fddd9d7..cd38005 100644 --- a/include/uapi/linux/icmp.h +++ b/include/uapi/linux/icmp.h @@ -17,6 +17,7 @@ #ifndef _UAPI_LINUX_ICMP_H #define _UAPI_LINUX_ICMP_H +#include <linux/libc-compat.h> #include <linux/types.h> #define ICMP_ECHOREPLY 0 /* Echo Reply */ @@ -64,7 +65,7 @@ #define ICMP_EXC_TTL 0 /* TTL count exceeded */ #define ICMP_EXC_FRAGTIME 1 /* Fragment Reass time exceeded */ - +#if __UAPI_DEF_ICMPHDR struct icmphdr { __u8 type; __u8 code; @@ -82,6 +83,7 @@ struct icmphdr { __u8 reserved[4]; } un; }; +#endif /* __UAPI_DEF_ICMPHDR */ /* diff --git a/include/uapi/linux/libc-compat.h b/include/uapi/linux/libc-compat.h index 40190a4..8a5a7cc 100644 --- a/include/uapi/linux/libc-compat.h +++ b/include/uapi/linux/libc-compat.h @@ -154,6 +154,13 @@ #endif /* _NETINET_IN_H */ +/* Coordinate with glibc netinet/ip_icmp.h header. */ +#if defined(__NETINET_IP_ICMP_H) +#define __UAPI_DEF_ICMPHDR 0 +#else /* defined(__NETINET_IP_ICMP_H) */ +#define __UAPI_DEF_ICMPHDR 1 +#endif /* defined(__NETINET_IP_ICMP_H) */ + /* Coordinate with glibc netipx/ipx.h header. */ #if defined(__NETIPX_IPX_H) @@ -218,6 +225,9 @@ #define __UAPI_DEF_IN6_PKTINFO 1 #define __UAPI_DEF_IP6_MTUINFO 1 +/* Definitions for icmp.h */ +#define __UAPI_DEF_ICMPHDR 1 + /* Definitions for ipx.h */ #define __UAPI_DEF_SOCKADDR_IPX 1 #define __UAPI_DEF_IPX_ROUTE_DEFINITION 1 -- 2.8.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-23 23:38 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20160822.163251.1904761519827702046.davem@davemloft.net> [not found] ` <20160822.163322.904817610242858006.davem@davemloft.net> [not found] ` <20160822.163328.128299200974687538.davem@davemloft.net> [not found] ` <20160822.163303.1956681667227236700.davem@davemloft.net> 2016-08-23 21:21 ` [PATCH v05 66/72] uapi icmp.h: glibc netinet/ip_icmp.h header file compatibility fixes Mikko Rapeli 2016-08-23 23:38 ` David Miller [not found] <1471890809-4383-1-git-send-email-mikko.rapeli@iki.fi> 2016-08-22 18:33 ` Mikko Rapeli
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).