Message ID | 20201216070620.16063-1-zhengyongjun3@huawei.com (mailing list archive) |
---|---|
State | Deferred |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] net: rds: Change PF_INET to AF_INET | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net-next |
netdev/subject_prefix | success | Link |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 3 this patch: 3 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 32 lines checked |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 3 this patch: 3 |
netdev/header_inline | success | Link |
netdev/stable | success | Stable not CCed |
On Wed, 16 Dec 2020 15:06:20 +0800 Zheng Yongjun wrote: > By bsd codestyle, change PF_INET to AF_INET. > > Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> # Form letter - net-next is closed We have already sent the networking pull request for 5.11 and therefore net-next is closed for new drivers, features, code refactoring and optimizations. We are currently accepting bug fixes only. Please repost when net-next reopens after 5.11-rc1 is cut. Look out for the announcement on the mailing list or check: http://vger.kernel.org/~davem/net-next.html RFC patches sent for review only are obviously welcome at any time.
diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c index 5f741e51b4ba..04102dbc04d2 100644 --- a/net/rds/rdma_transport.c +++ b/net/rds/rdma_transport.c @@ -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; diff --git a/net/rds/tcp_listen.c b/net/rds/tcp_listen.c index 101cf14215a0..8dc71aee4691 100644 --- a/net/rds/tcp_listen.c +++ b/net/rds/tcp_listen.c @@ -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(-)