From 12451a412fb7b5706c1553618ee7b704234876cc Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Mon, 3 Oct 2016 01:54:36 -0400 Subject: linux-libc-headers: fix in/if.h includes The following kernel commits broke the compilation of ppp, due to redefined structures. Nothing else breaks in userspace with or without these uapi changes, so we revert them to keep everything building. commit 05ee5de7451796cf9a8aeb2f05a57790d4fd2336 Author: Mikko Rapeli Date: Mon Aug 22 20:32:42 2016 +0200 include/uapi/linux/if_pppol2tp.h: include linux/in.h and linux/in6.h Fixes userspace compilation errors like: error: field <80><98>addr<80><99> has incomplete type struct sockaddr_in addr; /* IP address and port to send to */ ^ error: field <80><98>addr<80><99> has incomplete type struct sockaddr_in6 addr; /* IP address and port to send to */ Signed-off-by: Mikko Rapeli Signed-off-by: David S. Miller commit eafe92114308acf14e45c6c3d154a5dad5523d1a Author: Mikko Rapeli Date: Mon Aug 22 20:32:43 2016 +0200 include/uapi/linux/if_pppox.h: include linux/in.h and linux/in6.h Fixes userspace compilation errors: error: field <80><98>addr<80><99> has incomplete type struct sockaddr_in addr; /* IP address and port to send to */ error: field <80><98>addr<80><99> has incomplete type struct sockaddr_in6 addr; /* IP address and port to send to */ Signed-off-by: Mikko Rapeli Signed-off-by: David S. Miller Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie --- .../0001-ppp-fix-in-if.h-includes.patch | 83 ++++++++++++++++++++++ .../linux-libc-headers/linux-libc-headers_4.8.bb | 4 ++ 2 files changed, 87 insertions(+) create mode 100644 meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-ppp-fix-in-if.h-includes.patch (limited to 'meta/recipes-kernel/linux-libc-headers') diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-ppp-fix-in-if.h-includes.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-ppp-fix-in-if.h-includes.patch new file mode 100644 index 0000000000..f31a53946e --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-ppp-fix-in-if.h-includes.patch @@ -0,0 +1,83 @@ +From 80f3064c378f8c919aa6450bd7833a154c184f7f Mon Sep 17 00:00:00 2001 +From: Bruce Ashfield +Date: Mon, 3 Oct 2016 01:18:13 -0400 +Subject: [PATCH] ppp: fix in/if.h includes + +The following kernel commits broke the compilation of ppp, due to redefined +structures. + +Nothing else breaks in userspace with or without these uapi changes, so we +revert them to keep everything building. + + commit 05ee5de7451796cf9a8aeb2f05a57790d4fd2336 + Author: Mikko Rapeli + Date: Mon Aug 22 20:32:42 2016 +0200 + + include/uapi/linux/if_pppol2tp.h: include linux/in.h and linux/in6.h + + Fixes userspace compilation errors like: + + error: field <80><98>addr<80><99> has incomplete type + struct sockaddr_in addr; /* IP address and port to send to */ + ^ + error: field <80><98>addr<80><99> has incomplete type + struct sockaddr_in6 addr; /* IP address and port to send to */ + + Signed-off-by: Mikko Rapeli + Signed-off-by: David S. Miller + + commit eafe92114308acf14e45c6c3d154a5dad5523d1a + Author: Mikko Rapeli + Date: Mon Aug 22 20:32:43 2016 +0200 + + include/uapi/linux/if_pppox.h: include linux/in.h and linux/in6.h + + Fixes userspace compilation errors: + + error: field <80><98>addr<80><99> has incomplete type + struct sockaddr_in addr; /* IP address and port to send to */ + + error: field <80><98>addr<80><99> has incomplete type + struct sockaddr_in6 addr; /* IP address and port to send to */ + + Signed-off-by: Mikko Rapeli + Signed-off-by: David S. Miller + +Signed-off-by: Bruce Ashfield +--- + include/uapi/linux/if_pppol2tp.h | 2 -- + include/uapi/linux/if_pppox.h | 3 --- + 2 files changed, 5 deletions(-) + +diff --git a/include/uapi/linux/if_pppol2tp.h b/include/uapi/linux/if_pppol2tp.h +index 4bd1f55..ca559c6 100644 +--- a/include/uapi/linux/if_pppol2tp.h ++++ b/include/uapi/linux/if_pppol2tp.h +@@ -16,8 +16,6 @@ + #define _UAPI__LINUX_IF_PPPOL2TP_H + + #include +-#include +-#include + + /* Structure used to connect() the socket to a particular tunnel UDP + * socket over IPv4. +diff --git a/include/uapi/linux/if_pppox.h b/include/uapi/linux/if_pppox.h +index d37bbb1..e128769 100644 +--- a/include/uapi/linux/if_pppox.h ++++ b/include/uapi/linux/if_pppox.h +@@ -21,11 +21,8 @@ + #include + + #include +-#include + #include + #include +-#include +-#include + + /* For user-space programs to pick up these definitions + * which they wouldn't get otherwise without defining __KERNEL__ +-- +2.7.4 + diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.8.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.8.bb index 77e0870d32..778f0b6e64 100644 --- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.8.bb +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.8.bb @@ -8,5 +8,9 @@ SRC_URI_append_libc-musl = "\ file://0003-remove-inclusion-of-sysinfo.h-in-kernel.h.patch \ " +SRC_URI_append = "\ + file://0001-ppp-fix-in-if.h-includes.patch \ + " + SRC_URI[md5sum] = "c1af0afbd3df35c1ccdc7a5118cd2d07" SRC_URI[sha256sum] = "3e9150065f193d3d94bcf46a1fe9f033c7ef7122ab71d75a7fb5a2f0c9a7e11a" -- cgit v1.2.3