From patchwork Wed Dec 16 07:06:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Yongjun X-Patchwork-Id: 344841 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94A78C4361B for ; Wed, 16 Dec 2020 07:06:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 41FC02311B for ; Wed, 16 Dec 2020 07:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726000AbgLPHGk (ORCPT ); Wed, 16 Dec 2020 02:06:40 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:9893 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbgLPHGk (ORCPT ); Wed, 16 Dec 2020 02:06:40 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CwmNZ42FKz79Zl; Wed, 16 Dec 2020 15:05:18 +0800 (CST) Received: from ubuntu.network (10.175.138.68) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Wed, 16 Dec 2020 15:05:48 +0800 From: Zheng Yongjun To: , , , , CC: Zheng Yongjun Subject: [PATCH net-next] net: rds: Change PF_INET to AF_INET Date: Wed, 16 Dec 2020 15:06:20 +0800 Message-ID: <20201216070620.16063-1-zhengyongjun3@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Originating-IP: [10.175.138.68] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org By bsd codestyle, change PF_INET to AF_INET. Signed-off-by: Zheng Yongjun --- net/rds/rdma_transport.c | 4 ++-- net/rds/tcp_listen.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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);