Re: [PATCH] uapi: Fix linux/rds.h userspace compilation errors.

From: santosh.shilimkar@xxxxxxxxxx
Date: Fri Aug 24 2018 - 23:04:13 EST


On 8/24/18 6:26 PM, Vinson Lee wrote:
Include linux/in6.h for struct in6_addr.

/usr/include/linux/rds.h:156:18: error: field âladdrâ has incomplete type
struct in6_addr laddr;
^~~~~
/usr/include/linux/rds.h:157:18: error: field âfaddrâ has incomplete type
struct in6_addr faddr;
^~~~~
/usr/include/linux/rds.h:178:18: error: field âladdrâ has incomplete type
struct in6_addr laddr;
^~~~~
/usr/include/linux/rds.h:179:18: error: field âfaddrâ has incomplete type
struct in6_addr faddr;
^~~~~
/usr/include/linux/rds.h:198:18: error: field âbound_addrâ has incomplete type
struct in6_addr bound_addr;
^~~~~~~~~~
/usr/include/linux/rds.h:199:18: error: field âconnected_addrâ has incomplete type
struct in6_addr connected_addr;
^~~~~~~~~~~~~~
/usr/include/linux/rds.h:219:18: error: field âlocal_addrâ has incomplete type
struct in6_addr local_addr;
^~~~~~~~~~
/usr/include/linux/rds.h:221:18: error: field âpeer_addrâ has incomplete type
struct in6_addr peer_addr;
^~~~~~~~~
/usr/include/linux/rds.h:245:18: error: field âsrc_addrâ has incomplete type
struct in6_addr src_addr;
^~~~~~~~
/usr/include/linux/rds.h:246:18: error: field âdst_addrâ has incomplete type
struct in6_addr dst_addr;
^~~~~~~~

Fixes: b7ff8b1036f0 ("rds: Extend RDS API for IPv6 support")
Signed-off-by: Vinson Lee <vlee@xxxxxxxxxxxxxxx>
---
Acked-by: Santosh Shilimkar <santosh.shilimkar@xxxxxxxxxx>