]> asedeno.scripts.mit.edu Git - linux.git/commit
uapi: fix linux/rxrpc.h userspace compilation errors
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 13 Nov 2017 00:37:06 +0000 (03:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Nov 2017 04:50:13 +0000 (13:50 +0900)
commit0eef304bc9f7d079a1165e8cd2f24b078e9e1f2a
treec1b41f1ed2891c050d21f3f8cc32ba719e20f8da
parent4497478c60c04d2bf37082e27fc98f4f835db96b
uapi: fix linux/rxrpc.h userspace compilation errors

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 */

Fixes: 727f8914477e ("rxrpc: Expose UAPI definitions to userspace")
Cc: <stable@vger.kernel.org> # v4.14
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rxrpc.h