Skip to contentSkip to conversation

ipv6: directly include libc-compat.h in ipv6.h

PATCH Applied Willem de Bruijn 3 participants 3 messages Jan 12, 2015 – Jan 13, 2015

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

PATCH 1/1 ipv6: directly include libc-compat.h in ipv6.h

From: Willem de Bruijn <[email protected]>

Patch 3b50d9029809 ("ipv6: fix redefinition of in6_pktinfo ...") fixed a libc compatibility issue in ipv6 structure definitions as described in include/uapi/linux/libc-compat.h.

It relies on including linux/in6.h to include libc-compat.h itself. Include that file directly to clearly communicate the dependency (libc-compat.h: "This include must be as early as possible").

----

As discussed in http://patchwork.ozlabs.org/patch/427384/

---
 include/uapi/linux/ipv6.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/linux/ipv6.h +1 -0
index b9b1b7d..73cb02d 100644
@@ -1,6 +1,7 @@
 #ifndef _UAPI_IPV6_H
 #define _UAPI_IPV6_H
 
+#include <linux/libc-compat.h>
 #include <linux/types.h>
 #include <linux/in6.h>
 #include <asm/byteorder.h>
Signature · 1 line
2.2.0.rc0.207.ga3a616c
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Willem de Bruijn

From: Willem de Bruijn <[email protected]>

Patch 3b50d9029809 ("ipv6: fix redefinition of in6_pktinfo ...") fixed a libc compatibility issue in ipv6 structure definitions as described in include/uapi/linux/libc-compat.h.

Quoted 6 lines

It relies on including linux/in6.h to include libc-compat.h itself. Include that file directly to clearly communicate the dependency (libc-compat.h: "This include must be as early as possible").

Thanks for the patch!

maintainer Applied
#2 lore raw
In reply to Willem de Bruijn

From: Willem de Bruijn <[email protected]>
Date: Mon, 12 Jan 2015 14:29:34 -0500

Quoted 11 lines

From: Willem de Bruijn <[email protected]>

Patch 3b50d9029809 ("ipv6: fix redefinition of in6_pktinfo ...") fixed a libc compatibility issue in ipv6 structure definitions as described in include/uapi/linux/libc-compat.h.

It relies on including linux/in6.h to include libc-compat.h itself. Include that file directly to clearly communicate the dependency (libc-compat.h: "This include must be as early as possible").

Applied.