[oe-commits] [openembedded-core] 08/40: linux-libc-headers_4.19.bb: Backport patch to fix clockid_t in UAPI

git at git.openembedded.org git at git.openembedded.org
Fri Jan 11 10:40:05 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 119e3dacfd5c371d5f81f95c1a356e33c80362b2
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Tue Jan 8 12:42:49 2019 -0800

    linux-libc-headers_4.19.bb: Backport patch to fix clockid_t in UAPI
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Cc: Bruce Ashfield <bruce.ashfield at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 ...se-__kernel_clockid_t-in-uapi-net_stamp.h.patch | 49 ++++++++++++++++++++++
 .../linux-libc-headers/linux-libc-headers_4.19.bb  |  1 +
 2 files changed, 50 insertions(+)

diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-net-Use-__kernel_clockid_t-in-uapi-net_stamp.h.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-net-Use-__kernel_clockid_t-in-uapi-net_stamp.h.patch
new file mode 100644
index 0000000..3684cc2
--- /dev/null
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-net-Use-__kernel_clockid_t-in-uapi-net_stamp.h.patch
@@ -0,0 +1,49 @@
+From e2c4cf7f98a519eb4d95532bfa06bcaf3562fed5 Mon Sep 17 00:00:00 2001
+From: Davide Caratti <dcaratti at redhat.com>
+Date: Mon, 17 Dec 2018 11:26:38 +0100
+Subject: [PATCH] net: Use __kernel_clockid_t in uapi net_stamp.h
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Herton reports the following error when building a userspace program that
+includes net_stamp.h:
+
+ In file included from foo.c:2:
+ /usr/include/linux/net_tstamp.h:158:2: error: unknown type name
+ ‘clockid_t’
+   clockid_t clockid; /* reference clockid */
+   ^~~~~~~~~
+
+Fix it by using __kernel_clockid_t in place of clockid_t.
+
+Fixes: 80b14dee2bea ("net: Add a new socket option for a future transmit time.")
+Cc: Timothy Redaelli <tredaelli at redhat.com>
+Reported-by: Herton R. Krzesinski <herton at redhat.com>
+Signed-off-by: Davide Caratti <dcaratti at redhat.com>
+Tested-by: Paolo Abeni <pabeni at redhat.com>
+Signed-off-by: David S. Miller <davem at davemloft.net>
+---
+Upstream-Status: Backport [https://github.com/torvalds/linux/commit/e2c4cf7f98a519eb4d95532bfa06bcaf3562fed5]
+
+ include/uapi/linux/net_tstamp.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h
+index 97ff3c17ec4d..e5b39721c6e4 100644
+--- a/include/uapi/linux/net_tstamp.h
++++ b/include/uapi/linux/net_tstamp.h
+@@ -155,8 +155,8 @@ enum txtime_flags {
+ };
+ 
+ struct sock_txtime {
+-	clockid_t	clockid;	/* reference clockid */
+-	__u32		flags;		/* as defined by enum txtime_flags */
++	__kernel_clockid_t	clockid;/* reference clockid */
++	__u32			flags;	/* as defined by enum txtime_flags */
+ };
+ 
+ #endif /* _NET_TIMESTAMPING_H */
+-- 
+2.20.1
+
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.19.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.19.bb
index 8fd427e..48f25eb 100644
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.19.bb
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.19.bb
@@ -10,6 +10,7 @@ SRC_URI_append_libc-musl = "\
    "
 
 SRC_URI_append = "\
+    file://0001-net-Use-__kernel_clockid_t-in-uapi-net_stamp.h.patch \
     file://0001-scripts-Use-fixed-input-and-output-files-instead-of-.patch \
     file://0001-kbuild-install_headers.sh-Strip-_UAPI-from-if-define.patch \
     file://0002-arm64-sve-ptrace-Fix-SVE_PT_REGS_OFFSET-definition.patch \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list