Patch "uapi: fix linux/rxrpc.h userspace compilation errors" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
uapi: fix linux/rxrpc.h userspace compilation errors
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
uapi-fix-linux-rxrpc.h-userspace-compilation-errors.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
0eef304bc9f7d079a1165e8cd2f24b078e9e1f2aMon Sep 17 00:00:00 2001
From: "Dmitry V. Levin" <[email protected]>
Date: Mon, 13 Nov 2017 03:37:06 +0300
Subject: uapi: fix linux/rxrpc.h userspace compilation errors
From: Dmitry V. Levin <[email protected]>
commit 0eef304bc9f7d079a1165e8cd2f24b078e9e1f2a upstream.
Consistently use types provided by <linux/types.h> to fix the following linux/rxrpc.h userspace compilation errors:
/usr/include/linux/rxrpc.h:24:2: error: unknown type name 'u16'
u16 srx_service; /* service desired *//usr/include/linux/rxrpc.h:25:2: error: unknown type name 'u16'
u16 transport_type; /* type of transport socket (SOCK_DGRAM) *//usr/include/linux/rxrpc.h:26:2: error: unknown type name 'u16'
u16 transport_len; /* length of transport address */
Use __kernel_sa_family_t instead of sa_family_t the same way as uapi/linux/in.h does, to fix the following linux/rxrpc.h userspace compilation errors:
/usr/include/linux/rxrpc.h:23:2: error: unknown type name 'sa_family_t'
sa_family_t srx_family; /* address family *//usr/include/linux/rxrpc.h:28:3: error: unknown type name 'sa_family_t'
sa_family_t family; /* transport address family */
--- include/uapi/linux/rxrpc.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
include/uapi/linux/rxrpc.h +5 -5
@@ -20,12 +20,12 @@* RxRPC socket address */ struct sockaddr_rxrpc { -sa_family_t srx_family;/* address family */ -u16 srx_service;/* service desired */ -u16 transport_type;/* type of transport socket (SOCK_DGRAM) */ -u16 transport_len;/* length of transport address */ +__kernel_sa_family_t srx_family;/* address family */ +__u16 srx_service;/* service desired */ +__u16 transport_type;/* type of transport socket (SOCK_DGRAM) */ +__u16 transport_len;/* length of transport address */ union { -sa_family_t family;/* transport address family */ +__kernel_sa_family_t family;/* transport address family */ struct sockaddr_in sin;/* IPv4 transport address */ struct sockaddr_in6 sin6;/* IPv6 transport address */ } transport;
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/uapi-fix-linux-tls.h-userspace-compilation-error.patch queue-4.14/uapi-fix-linux-rxrpc.h-userspace-compilation-errors.patch