From patchwork Mon Jan 2 10:39:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9493327 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 1897662AB3 for ; Mon, 2 Jan 2017 10:39:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A2D724560 for ; Mon, 2 Jan 2017 10:39:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CAAE20008; Mon, 2 Jan 2017 10:39:15 +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 678C620008 for ; Mon, 2 Jan 2017 10:39:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932168AbdABKjM (ORCPT ); Mon, 2 Jan 2017 05:39:12 -0500 Received: from mail-dm3nam03on0058.outbound.protection.outlook.com ([104.47.41.58]:60224 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932160AbdABKjK (ORCPT ); Mon, 2 Jan 2017 05:39:10 -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=GIFnhy7u6x01penjtqYYK0P6dPNDI4rtA9eHH4QtETM=; b=vvaFLFPry+NW2Y1QptHKlgOwF7byebjXG1ko72U/hFR012Q/4d//dWJvaRW74bI59qUx/RfMwhGrjlGSyDKDfe+Qip3Zx1OQptHzTVEiI2frEpXEnwWL2Lnv6+jg/5Job3zs4z9fPR3KxUgk1y56BX9Jrruywh67JMM0njaFPYw= Received: from BY1PR0201CA0032.namprd02.prod.outlook.com (10.160.191.170) by BY1PR0201MB0984.namprd02.prod.outlook.com (10.161.203.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Mon, 2 Jan 2017 10:39:08 +0000 Received: from BY2FFO11FD023.protection.gbl (2a01:111:f400:7c0c::174) by BY1PR0201CA0032.outlook.office365.com (2a01:111:e400:4814::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10 via Frontend Transport; Mon, 2 Jan 2017 10:39:08 +0000 Authentication-Results: spf=pass (sender IP is 74.221.232.54) 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 74.221.232.54 as permitted sender) receiver=protection.outlook.com; client-ip=74.221.232.54; helo=sacsmgep14.sandisk.com; Received: from sacsmgep14.sandisk.com (74.221.232.54) by BY2FFO11FD023.mail.protection.outlook.com (10.1.15.212) 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; Mon, 2 Jan 2017 10:39:07 +0000 X-AuditID: ac1c2133-b8fff70000000ec6-34-586aa8c259af Received: from SACHUBIP01.sdcorp.global.sandisk.com (Unknown_Domain [172.28.1.254]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 8D.47.03782.2C8AA685; Mon, 2 Jan 2017 11:23:46 -0800 (PST) Received: from ULS-OP-MBXIP03.sdcorp.global.sandisk.com ([fe80::f9ec:1e1b:1439:62d8]) by SACHUBIP01.sdcorp.global.sandisk.com ([10.181.10.103]) with mapi id 14.03.0319.002; Mon, 2 Jan 2017 02:39:07 -0800 From: Bart Van Assche To: "dledford@redhat.com" CC: "andrew.boyer@dell.com" , "monis@mellanox.com" , "linux-rdma@vger.kernel.org" Subject: [PATCH 01/15] IB/rxe: Suppress sparse warnings Thread-Topic: [PATCH 01/15] IB/rxe: Suppress sparse warnings Thread-Index: AQHSZORwLv4vUb+P3k6nvc1x62X73Q== Date: Mon, 2 Jan 2017 10:39:05 +0000 Message-ID: <1483353409.3592.15.camel@sandisk.com> References: <1483353316.3592.14.camel@sandisk.com> In-Reply-To: <1483353316.3592.14.camel@sandisk.com> Accept-Language: nl-NL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.28.1.254] Content-ID: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKIsWRmVeSWpSXmKPExsWyRobxn+6hFVkRBquOSFlca9/HavHy/AdW i2eHelksNrxfw+7A4jFp5gxmj2fTDzN5vN93lc3j8ya5AJYoLpuU1JzMstQifbsErowpZ2ez FHSIV3TezG5g3CPWxcjJISFgInH65UTmLkYuDiGBJUwSLztuskA45xklblz7zQhSxSZgJDF7 wh4WEFtEQF/i0OqVjCBFzAJzGSXW31nKDpIQFjCXeLTxA5DNAVRkIzFvfTxEvZ7Epc/T2UBs FgEVied9K8Fm8gLNXN10H6xVCMg+2fkMLM4pYCxxfPpxFpAxjAKyEi2vuUHCzALiEreezGeC OFpAYsme88wQtqjEy8f/WCFsBYnPK/6xgbQyC2hKrN+lD9FqJbHyy3I2CFtRYkr3Q3aICwQl Ts58wjKBUWwWkg2zELpnIemehaR7FpLuBYysqxjFihOTi3PTUwsMTfSKE/NSMouz9ZLzczcx giNP0XgH478N7ocYBTgYlXh4F9zMjBBiTSwrrsw9xCjBwawkwtuinhUhxJuSWFmVWpQfX1Sa k1p8iFGag0VJnFf+wO5QIYH0xJLU7NTUgtQimCwTB6dUA2NZ1bULizM5PBWjDhwK3fbKxuhf 1FuB/mfrq56lroi9Hf6Gsdtjp+FWxu8Ot+/+1DdS32jAvE5NMPjPN/mtae6P1lR3WbNpmXx+ WLbYKo9p0p13b5iXr+GuODmxsTDOqO2IuW74ye9PD1zbGLjurGm065uzK85ec7livGJG8bRX S3pSxeLnsLorsRRnJBpqMRcVJwIAs69ZeLgCAAA= X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:74.221.232.54; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39860400002)(39410400002)(39840400002)(39850400002)(39450400003)(2980300002)(438002)(189002)(199003)(23676002)(2351001)(8936002)(8676002)(626004)(2950100002)(2501003)(106116001)(3846002)(102836003)(6116002)(69596002)(97736004)(110136003)(5660300001)(81166006)(305945005)(4326007)(54906002)(1730700003)(6916009)(7736002)(86362001)(92566002)(2900100001)(81156014)(68736007)(356003)(5640700003)(189998001)(36756003)(33646002)(76176999)(2906002)(8666007)(50986999)(103116003)(106466001)(2270400002)(54356999)(38730400001)(47776003)(50466002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0201MB0984; H:sacsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD023; 1:LS0ObsliaAnHKn9Cl9WtHqUc889W3o9Uwv4DXqg58gHIFXnwKT7DhAZDmO8UKdzUpecdANcgdprgm16ilTdvOQtf6/TCJ/Hid5FVbITOjgYypMGPUchI9fiIgd1O9cY01/4hf5G1jCWV0huauIErpJbNH4MqlWumCy5jMOjZqAvUfC3GhYmKuLM5o1BYs6qQEEL6zaumQjmihKT8Wefak9P/Ym6wjV663NwPivUp3Ew2fgJ/xBcF+blZVh7dz8XDoELhmO3pj5Z6Atuqdkp/Wt/vq1beWPHTMpBwf+Yt5j0Eo58YWYp4apqMsVci8DPvUyxqJ5UoLzCarqTT75V8RGDF3VBo7w+RsAoqPwwkM5vw1MqopUUlQLzGmgGeTq3IkENIMxB4eJJOlWtf6GtuUVwd/knK9l3xFsnZiIYg6oa2cAn1luE6vqY+IvQgtC4Y0zQ7xh1Wp57hbzIoLiwzgKt5boDdPcHNI+MKKyYo1m7aEmsTFOgbgQY02yvqzW1SnGskFmBrcHcLYRruoD+bpzDnRyQhM8M0Voq2otndYA8CNx2Ev41gVXs2AoBrKQpQRkhB7FcXbuknRy93owq7PvA3639UFwKdAWrObUQj2PY= X-MS-Office365-Filtering-Correlation-Id: 7089b09f-b062-4493-58eb-08d432fb94a5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY1PR0201MB0984; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0201MB0984; 3:Lgy7IkomYfE8saGdQFuEKFUAyqPuyrX5FDo76VS876W1/M3PqOXK0poUo2UIsNfYVqyMHv2r/jOWIwvmKc7gdudl6yeRHzfYSCZ+0S4mNAWFG9q6zJS3u5DByVXlDj6zftivMDHPa2YEND/Td9ELTorQ4psIHn+UmX7eWZUayfji7l2FlJjYSq7zNnvWsCw6bbf9pZLDq3QZMA5Fb1+av6C+kpftN5o5v3TkbDQ9Yhgljtsn0UnyIc51eB8l/8nUtmJmNjVMREKaN3aortmVUQIfnqDP/mNmZ/36jvDSXamDwcldAS3cchVSvhhJ6tLmP3DgCcfeHjns9FjNgUqbgencLT2fEEqoxNrYOi5oIu3wDbf2yCT3zng6g6/lcr2ZcsKfYD35btXhU9SXpzNWbQ==; 25:tCfsNY1iHxhQvPbb/Uj8Cfywb5YlCpmwGe/Tuh4gWC4RwHQfktligCL0kBmqn98HTw3PY8e+tNvyVpUkiI7m1xWUHo0ztAQ+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HAVwR5u5tklh0Lm3dsvbfDJ+Hw9PZbO4Zr8EnahXMvncRBEdnLNkF/Y2ELMcTNl9tWbuwOFjW1jvO98Z6pTI9rbgmWV4Pdr1Hh8I3xkV46Sl9rXhvVL5Ty/spRoAe516q4rbNALxeKhFwuDhNuopS/ZGECfq 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)(13023025)(13024025)(13015025)(13017025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(20161123558021)(6072148); SRVR:BY1PR0201MB0984; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0201MB0984; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0201MB0984; 4:lOsbYgfiFnV0uYqxREzEmmOxJnoMKccQstjjq5z0YAmfvUNaiF9a8Ib3qkuO7OQy/+vn805/d/D3t1FnSLZ94KAM6n5imq7aZvAaqMEysJOmoybi9KmPhhdinVDezlxmawL+daoT3ZES/Al8KpYXZR++P42fl/Be7+cOUMtd/Ap2JV3NHY2/DzH7WBAsp4MX7mIF6P5labuoItyO9EGd3+fI7fjcUJYP/CI39ZursVrwgfrSNqRn+UQMo6rvVNXUDrTPtCnbe00JZDyfYFsbHSIIwM/l6PeNLuhYB0F/bg8uGpTbW0EteXmnbJQqLa/ijzALWp6GJp5Oah1rnRgTS9qMvHp3duXQXRP+zAZbvK8S1ushLbS4dDNwn0jsS2UT5LEKplg0Qn2fwI4Z/zx/kW2MxkCDtrGZTnFIMcamemp809fvsPOI0mJi8sc327c/h8f9PmFOPQA8wc6op9Yp8aZODrvVRQaZpUtZJppE2mJcW5TKpIWL6HSs/xKIqYBufzqjWw6efLWVqzlAzt8GfZ0AfHhIK5QOVtMj8pchn7zWUqE0X97u4ozOl1TWIY0/QEbSbBSUHexR1AL5U19NQHXPSQ4ck/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utput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0201MB0984; 7:3FRE/y0rrtTbY+hhhL7/4ehgfAAyNcm1hEE/zlLQNrfBMnCFyiF3XqkwbsANJXR3X0XZ36IiJFHqxO0ivRdfVRV/mTlYQ9sdBGlRxVwteHMnucnKEI7yP5tJAa/BY/KZOTCnn/lpWRxiMxOi4KN9EyUV4aWlUFjmYCniPmz0W8MIyZqsuFG9BjdMHTOQXeSWjpcmX1R1woNSfyKjhzj1/iLXp6ABk+vC/1gVeU6YOqqds/FChh2lZcyZjnXMbfNonoAGaEgs/wO/DPC3g4Ud4r/HZ1h/OVogLIvKxBspwn2NEf/jubDcVSum6w+H2UmePkw+2EgiwO+xxv7YNpVCLhK5/nOBJX+WTSaAJGpIxqCt+eyupKKs5ln008t32ojpLEsSs+piy8xjXORI1nMXbasr+WlbzFHk8RfOwyLcdEbTPZEOSoL2hXE8rsIfqteud2LxaV3MjmXO1aFwif5aLQ== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2017 10:39:07.7190 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[74.221.232.54]; Helo=[sacsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0201MB0984 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. Avoid that sparse complains about missing function declarations. Avoid that sparse complains about endianness. Signed-off-by: Bart Van Assche Cc: Moni Shoua Cc: Andrew Boyer ---  drivers/infiniband/sw/rxe/rxe_net.c  | 8 ++++----  drivers/infiniband/sw/rxe/rxe_recv.c | 2 +-  2 files changed, 5 insertions(+), 5 deletions(-) --  2.11.0 Reviewed-by: Leon Romanovsky Reviewed-by: Andrew Boyer 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",