From patchwork Tue Jan 10 19:08:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9508359 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DE797601E9 for ; Tue, 10 Jan 2017 19:10:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8D5028553 for ; Tue, 10 Jan 2017 19:10:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB49E28596; Tue, 10 Jan 2017 19:10:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDA3028553 for ; Tue, 10 Jan 2017 19:10:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763209AbdAJTIe (ORCPT ); Tue, 10 Jan 2017 14:08:34 -0500 Received: from mail-cys01nam02on0062.outbound.protection.outlook.com ([104.47.37.62]:56192 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756613AbdAJTIa (ORCPT ); Tue, 10 Jan 2017 14:08:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cpMEOQ340DMLifjefLsEu2Z+BA+I6BSDOpZQFeXoypE=; b=OnPgv3T9KHumgMc5SbT1A0jOlWMdO8TqEJ/HwoqYU4JRTzvDUoGTHHObUtfcTKprgMR/jYcn8WjiXm2tlW+JKksXUsBrkq2Xz4dXtbOhLVmAQfSLaWAumVuvpmvOr5csI7WdOBrLUukQMeCAAhqi/3iPhEC7JaiJvWcO7ZN5+Lc= Received: from BN6PR02CA0047.namprd02.prod.outlook.com (10.173.146.161) by BLUPR02MB033.namprd02.prod.outlook.com (10.242.191.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Tue, 10 Jan 2017 19:08:28 +0000 Received: from BN1BFFO11OLC001.protection.gbl (2a01:111:f400:7c10::1:114) by BN6PR02CA0047.outlook.office365.com (2603:10b6:404:5f::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7 via Frontend Transport; Tue, 10 Jan 2017 19:08:28 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN1BFFO11OLC001.mail.protection.outlook.com (10.58.145.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Tue, 10 Jan 2017 19:08:27 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id C6.A9.65426.58E25785; Tue, 10 Jan 2017 10:57:12 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:08:24 -0800 X-AuditID: 0ac94369-7f3ff7000001ff92-c6-58752e852f71 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 27.38.16817.82135785; Tue, 10 Jan 2017 11:08:24 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Moni Shoua Subject: [PATCH v2 01/15] IB/rxe: Suppress sparse warnings Date: Tue, 10 Jan 2017 11:08:08 -0800 Message-ID: <20170110190822.16953-2-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110190822.16953-1-bart.vanassche@sandisk.com> References: <20170110190822.16953-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsXCddJ5kW6HXmmEwcNZEhYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZa392MRZ8Eqg4u28acwPj Ir4uRk4OCQETiU9n9rB1MXJxCAksZZK4dmstC4SzjVFizq6X7DBVyxfPZodIbGSUOLlwBhtI gk3ASOLb+5ksILaIgJrEpleLwBqYBRwlLk37xNTFyMEhLGAl8aWDCSTMIqAq8engERaQMK+A vcSS75oQ4+UldrVdZAWxOQUcJC7OXgs2RQio5NG2DWBrJQSes0jcf3aPGSTBKyAocXLmExaI VRISB1+8YIZoUJc4uWQ+0wRGoVlIymYhKVvAyLSKUSw3M6c4Nz21wNBUrzgxLyWzOFsvOT93 EyMkiDN3MN594n2IUYCDUYmH98GLkggh1sSy4srcQ4wSHMxKIrypwBgQ4k1JrKxKLcqPLyrN SS0+xCjNwaIkzut270uYkEB6YklqdmpqQWoRTJaJg1OqgZFjzoceow8Xjef6O4mIHUtV3LHj Y+r3pglq4lyHs+sCPVbVGD6crvxD5HfYPU6RU5ytHf7BSmedCmbekVnZc2X3slXuh+qPz7jb wbI8uq2TwzYpYoLvsQeSmpvlF958YSz4kuHifD3nYEehMNv5mYJW3YGO6nFhq1hOPhJT3lR0 OO1/GUvyHiWW4oxEQy3mouJEAN32A0NeAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJMWRmVeSWpSXmKPExsXCtZGTTVfDsDTCYPssGYuX5z+wWjw71Mti seH9GnYHZo9n0w8zebzfd5XN4/MmuQDmKC6blNSczLLUIn27BK6MtT+7GAs+CVSc3TeNuYFx EV8XIyeHhICJxPLFs9m7GLk4hATWM0rcm/6DBSTBJmAk8e39TDBbREBNYtOrRUBFHBzMAo4S t8+HgJjCAlYSXzqYQCpYBFQlPh08AlbNK2AvcWTaBmaI8fISu9ousoLYnAIOEhdnr2UHsYWA ah5t28A+gZF7ASPDKkax3Myc4tz0zAJDQ73ixLyUzOJsveT83E2MED9H7mB8OtH8ECMTB6dU A2Nfhcr61ccYwtsUvmhtmeF1QH77Xp2NL64GJc67/PIxp4rDimcpvnt9dnrolrUWZfEzft62 7YWJ6g+ufM1eo7yjB5lKnuhI+zjGvrn45IBo958V19ve6Vx/++lJce4sQ9YOp3t1r98wc9r9 Vvl+/fu5uPcSa7uXfD2ieufjfGO2mpYmU5cgt8dKLMUZiYZazEXFiQBLkJywowEAAA== MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39840400002)(39450400003)(39860400002)(39410400002)(39850400002)(2980300002)(438002)(199003)(189002)(69596002)(68736007)(110136003)(356003)(4326007)(5003940100001)(305945005)(2906002)(50986999)(5660300001)(76176999)(47776003)(97736004)(106466001)(626004)(2270400002)(33646002)(2950100002)(50466002)(77096006)(48376002)(38730400001)(1076002)(54906002)(92566002)(81166006)(81156014)(50226002)(189998001)(6666003)(86362001)(8936002)(36756003)(6916009)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB033; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC001; 1:596aehuPkkf4FX/aBCu0ApXwCLro04G823ZcCUidLwkMfzTW+pRHor9Iu4GoHUvII3Q8iowI7b5uEo7vNJGhqZXtcm97GEnCl2IDrlptxV/Bi2Qwj64QOCo117J/NiImiIYaU/hm6z7KO9+RG7atTg5RnyaU3ocJGEM8rC0LfFpPRHLs5UoDlRML19yjjJ+P+NMmO/RpsntQmKz2NcOaAQ7Tc/mODcgsohcf6zNVGSDunQBgK4KqigCQJLfJQWMCOHYzdIVuSKe0O9nFK/zQ6yaPGk1+DaUcnzHeM6J+JXo4vEsS1uAZ+4z0o9xnlOBdkFbJVmRRfYOj8TLWmeP/74lilouHx5SmAQDW3hju1IMq4wr6OFeXvXiUKZbPxP+eWULsQODALH14tZ7kk9BWMwQ5GH8VKtFGWJgGcNxHVKMNWb2O28X+itnQSTU1XeG1qlmUyno/gz6p3uad9PYYZAAy9zCKuQaZ/YVuSHCt9r1Bs4v2CLEK2B9o8gnkxuH+UAKZ0HPT9895PYT4JQUKzQ== X-MS-Office365-Filtering-Correlation-Id: 7c2d01aa-fdc5-4fb0-dd07-08d4398c0f51 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BLUPR02MB033; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB033; 3:1JPR3bPIg75R3WuzM0yr4ytRdkB//3BhTLSmOGaSIF/guI264aoOmUbdG2eHdE4BVMHE08B9vrsEPZ/jaePOVfZiYOc8Mf6OwPD9bDfFWYim0LfqMjdmpY0wpLKOl3zRUvGvB9okglGnLlIMH1yB0wwl0j9XESD2T3EeDSSJKJ9rz7lFoIY0Fm4CPYMxnTF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kMtF+ojVUCu1Rk/C9F0XHkQI/egN6X2EbBszgs07c9Y7KJLXRwJpqmB147rM/Nwr7OlgFVvZreBolr7MwYY76b7Fr7rQaFoBtmNxm7lR8V67OyjvtJoelsIdxsaRewPQ0RjfTn/bVeF5YFbEKsOw99CIS/lMWEvX6pFV27wuvL8mJfMgzNXo5LjnrwuXdjfktXq3fI2XoOXKrJu/x+xAU7BDlpujyft0NkvAkALHT+AzA7EQTMfk76xNVcCzNGfjh65AcIFw+wxfdxyIGOtJ8CGgNDJ0Ir5U9LA2PtNqkxx5RnZ7Bf/uR3nIFAyyFftvvDW/YyPRYgFtlb4ipT3sDd6CQWZlSvjLYLB0eyW1aLcvjrRvJTVjwpvzZ7z8stAEZH8gPk86630PSr9CKa2tyYQ4tY3QYt7eBwDi0TQQYF5mRsGjH2PPesJJuoxGjVSF X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(56004941905204)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:BLUPR02MB033; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB033; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB033; 4:bWCHDj1DJFOuL7ExxwD6pLuVnPmSjtyolZTM9WaEiNjErBg01S/R5kGh4H/ZRLeNk+S8cPsKqn4zK9wmgF1bu0TM/3uVdk8uhkGxBrCp+wnssIfmK55C1W8+ZBqFr+J0zj8ijjidjTQSfw2uiBNEyz8szyfhjmmqtcBxXIYGcyiK5hIv2uzZCBRX4zbJHZ124EJCmfC1u7twQApPlqrh2zZtHzHu0V0H1n73b21KXsrrgYKRph2o/HB48EAgAKe8KZsREiV3IQI9OXvVQ9C6kCQMoZYiuFyiDzbFxmi5i1czc9MnOHHBLPX/ZX+KaUH/CfpSEg+3rdFX0v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k.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:08:27.7410 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB033 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Avoid that sparse complains about using 0 as a pointer, about missing function declarations and also avoid that sparse complains about endianness. Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky Reviewed-by: Andrew Boyer Cc: Moni Shoua --- drivers/infiniband/sw/rxe/rxe_net.c | 8 ++++---- drivers/infiniband/sw/rxe/rxe_recv.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/sw/rxe/rxe_net.c b/drivers/infiniband/sw/rxe/rxe_net.c index 342e78163613..151f639abebf 100644 --- a/drivers/infiniband/sw/rxe/rxe_net.c +++ b/drivers/infiniband/sw/rxe/rxe_net.c @@ -243,8 +243,8 @@ static struct socket *rxe_setup_udp_tunnel(struct net *net, __be16 port, { int err; struct socket *sock; - struct udp_port_cfg udp_cfg = {0}; - struct udp_tunnel_sock_cfg tnl_cfg = {0}; + struct udp_port_cfg udp_cfg = { }; + struct udp_tunnel_sock_cfg tnl_cfg = { }; if (ipv6) { udp_cfg.family = AF_INET6; @@ -658,7 +658,7 @@ struct notifier_block rxe_net_notifier = { .notifier_call = rxe_notify, }; -int rxe_net_ipv4_init(void) +static int rxe_net_ipv4_init(void) { recv_sockets.sk4 = rxe_setup_udp_tunnel(&init_net, htons(ROCE_V2_UDP_DPORT), false); @@ -671,7 +671,7 @@ int rxe_net_ipv4_init(void) return 0; } -int rxe_net_ipv6_init(void) +static int rxe_net_ipv6_init(void) { #if IS_ENABLED(CONFIG_IPV6) diff --git a/drivers/infiniband/sw/rxe/rxe_recv.c b/drivers/infiniband/sw/rxe/rxe_recv.c index 252b4d637d45..50886031096f 100644 --- a/drivers/infiniband/sw/rxe/rxe_recv.c +++ b/drivers/infiniband/sw/rxe/rxe_recv.c @@ -389,7 +389,7 @@ int rxe_rcv(struct sk_buff *skb) calc_icrc = rxe_icrc_hdr(pkt, skb); calc_icrc = crc32_le(calc_icrc, (u8 *)payload_addr(pkt), payload_size(pkt)); - calc_icrc = cpu_to_be32(~calc_icrc); + calc_icrc = (__force u32)cpu_to_be32(~calc_icrc); if (unlikely(calc_icrc != pack_icrc)) { if (skb->protocol == htons(ETH_P_IPV6)) pr_warn_ratelimited("bad ICRC from %pI6c\n",