@@ -249,7 +249,7 @@ static int rds_rdma_listen_init(void)
#endif
struct sockaddr_in sin;
- sin.sin_family = PF_INET;
+ sin.sin_family = AF_INET;
sin.sin_addr.s_addr = htonl(INADDR_ANY);
sin.sin_port = htons(RDS_PORT);
ret = rds_rdma_listen_init_common(rds_rdma_cm_event_handler,
@@ -259,7 +259,7 @@ static int rds_rdma_listen_init(void)
return ret;
#if IS_ENABLED(CONFIG_IPV6)
- sin6.sin6_family = PF_INET6;
+ sin6.sin6_family = AF_INET6;
sin6.sin6_addr = in6addr_any;
sin6.sin6_port = htons(RDS_CM_PORT);
sin6.sin6_scope_id = 0;
@@ -281,7 +281,7 @@ struct socket *rds_tcp_listen_init(struct net *net, bool isv6)
if (isv6) {
sin6 = (struct sockaddr_in6 *)&ss;
- sin6->sin6_family = PF_INET6;
+ sin6->sin6_family = AF_INET6;
sin6->sin6_addr = in6addr_any;
sin6->sin6_port = (__force u16)htons(RDS_TCP_PORT);
sin6->sin6_scope_id = 0;
@@ -289,7 +289,7 @@ struct socket *rds_tcp_listen_init(struct net *net, bool isv6)
addr_len = sizeof(*sin6);
} else {
sin = (struct sockaddr_in *)&ss;
- sin->sin_family = PF_INET;
+ sin->sin_family = AF_INET;
sin->sin_addr.s_addr = INADDR_ANY;
sin->sin_port = (__force u16)htons(RDS_TCP_PORT);
addr_len = sizeof(*sin);
By bsd codestyle, change PF_INET to AF_INET. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> --- net/rds/rdma_transport.c | 4 ++-- net/rds/tcp_listen.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)