Skip to content

Commit

Permalink
uapi: fix linux/rds.h userspace compilation error
Browse files Browse the repository at this point in the history
On the kernel side, sockaddr_storage is #define'd to
__kernel_sockaddr_storage.  Replacing struct sockaddr_storage with
struct __kernel_sockaddr_storage defined by <linux/socket.h> fixes
the following linux/rds.h userspace compilation error:

/usr/include/linux/rds.h:226:26: error: field 'dest_addr' has incomplete type
  struct sockaddr_storage dest_addr;

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
ldv-alt authored and davem330 committed Feb 19, 2017
1 parent feb0869 commit 1786dbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/uapi/linux/rds.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#define _LINUX_RDS_H

#include <linux/types.h>
#include <linux/socket.h> /* For __kernel_sockaddr_storage. */

#define RDS_IB_ABI_VERSION 0x301

Expand Down Expand Up @@ -256,7 +257,7 @@ struct rds_get_mr_args {
};

struct rds_get_mr_for_dest_args {
struct sockaddr_storage dest_addr;
struct __kernel_sockaddr_storage dest_addr;
struct rds_iovec vec;
__u64 cookie_addr;
__u64 flags;
Expand Down

0 comments on commit 1786dbf

Please sign in to comment.