From patchwork Tue Jan 10 19:15:47 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: 9508423 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 73DF66075C for ; Tue, 10 Jan 2017 19:17:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6752E27AB2 for ; Tue, 10 Jan 2017 19:17:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C37F28399; Tue, 10 Jan 2017 19:17:58 +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 9FDA927DC2 for ; Tue, 10 Jan 2017 19:17:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942514AbdAJTR0 (ORCPT ); Tue, 10 Jan 2017 14:17:26 -0500 Received: from mail-by2nam03on0046.outbound.protection.outlook.com ([104.47.42.46]:47751 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S940768AbdAJTQF (ORCPT ); Tue, 10 Jan 2017 14:16:05 -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=v+hpORI/gJBeusTfZgd3vCa1A1Dxi6TSy9FltDbtS04=; b=PXwfoc4NxG509LCGV5IUEdwiaOXJMgVPoAL1UAAJD+sBLGXnH+Ali83OKQTRwXaaaIghpm7MvK++pxOD/Lv9do6fdpTqhBxRYlo6xeeggfOi+o/6UPenyemqKsOIV4fTyOPHG9KpQAuNt4T0r2YyEA2PaVjv/OOeibnfSvY/0Ec= Received: from BLUPR0201CA0011.namprd02.prod.outlook.com (10.163.116.21) by BN1PR02MB040.namprd02.prod.outlook.com (10.242.210.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Tue, 10 Jan 2017 19:15:58 +0000 Received: from BN1AFFO11FD041.protection.gbl (2a01:111:f400:7c10::147) by BLUPR0201CA0011.outlook.office365.com (2a01:111:e400:52e7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12 via Frontend Transport; Tue, 10 Jan 2017 19:15:57 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none; 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 BN1AFFO11FD041.mail.protection.outlook.com (10.58.52.252) 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:15:56 +0000 Received: from MILHUBIP04.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 6F.A9.65426.74035785; Tue, 10 Jan 2017 11:04:40 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:15:55 -0800 X-AuditID: 0ac94369-7f3ff7000001ff92-36-5875304792f2 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 9D.48.16817.AE235785; Tue, 10 Jan 2017 11:15:54 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Moni Shoua Subject: [PATCH v2 08/15] IB/rxe: Issue warnings once Date: Tue, 10 Jan 2017 11:15:47 -0800 Message-ID: <20170110191554.17359-9-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110191554.17359-1-bart.vanassche@sandisk.com> References: <20170110191554.17359-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsXCddJ5ka6HQWmEwZZLzBYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZi490sBQskKhoOrSQtYHx m3AXIyeHhICJxLRJG1i6GLk4hASWMklc3b+QEcLZwSix5Mg8Vpiqo6/Ws4PYQgIbGSXeXBcE sdkEjCS+vZ/JAmKLCKhJbHq1CKyGWcBR4tK0T0wgtrCAqcTUhw/YQGwWAVWJ7zP3gdXzCthL rDv9CWq+vMSutotgNqeAg8SHBfeBejmAdtlLTFllDHKPhMBzFokJM3+yQfQKSpyc+YQFYpeE xMEXL5ghblOXOLlkPtMERqFZSMpmISlbwMi0ilEsNzOnODc9tcDQVK84MS8lszhbLzk/dxMj JIgzdzDefeJ9iFGAg1GJh/fBi5IIIdbEsuLK3EOMEhzMSiK8qXqlEUK8KYmVValF+fFFpTmp xYcYpTlYlMR53e59CRMSSE8sSc1OTS1ILYLJMnFwSjUw5k62XXtjv2Rm0KKL+1RVpX7OvfI0 T25/1vRpd4x1OM9NLuY3vLP83vw1qw4z2ioWc7NUP+LJ2hp5nO+BLL9P9q7j70K+79Odt/2i SevDAmPDoJuFwo9FYhtiMs0neLc6HFDo+v1xfmj44/XO53IM7tnPUM1eYuDVf/HAuvuHi/4s WuKYnRzPq8RSnJFoqMVcVJwIAP/4oaJeAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJMWRmVeSWpSXmKPExsXCtZGTTfeVUWmEwfJVqhYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZi490sBQskKhoOrSQtYHx m3AXIyeHhICJxNFX69m7GLk4hATWM0pcuT6LESTBJmAk8e39TBYQW0RATWLTq0VARRwczAKO ErfPh4CEhQVMJaY+fMAGYrMIqEp8n7kPrJxXwF7iSMs2doj58hK72i6ygticAg4SHxbcZwIZ IwRUM2WV8QRG7gWMDKsYxXIzc4pz0zMLDA31ihPzUjKLs/WS83M3MUL8HLmD8elE80OMTByc Ug2MJZK3zddn2273V/y637T2wbIXq/hLgk+0eWQodKg/s2ywWffl9Mzcx9zpOztMXcu3nt4Z 9uZJRNq+hGnNCv4qNtOnPE1bLHtZ/cW00z/9C8QublUW3v+o0JDhz+2rt/q7M3ZuOvJLbkZ/ fMy1twtC9Ao7Y5wny2QzOmvbL3q1ts5SclJt8tTbSizFGYmGWsxFxYkAfBf6IqMBAAA= 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)(39850400002)(39860400002)(39410400002)(39840400002)(39450400003)(2980300002)(438002)(199003)(189002)(626004)(81156014)(6916009)(2950100002)(8936002)(33646002)(69596002)(81166006)(8676002)(36756003)(5660300001)(110136003)(356003)(76176999)(2270400002)(106466001)(50986999)(47776003)(92566002)(189998001)(97736004)(86362001)(305945005)(6666003)(50466002)(48376002)(2906002)(1076002)(4326007)(50226002)(68736007)(77096006)(38730400001)(5003940100001)(54906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR02MB040; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD041; 1:zssuhJlB0oDbRDfGi/EOlLMgXF0Y+G9/UOD1rYOOG4l8Mp6szY0G9b5v1nmmSK57Nu1GZWJFUOcJMutP89u8mtVfFO4RgCxIQ0FQXZAIEeB6FVMHnEtrPDq9hXmFeYmwsnqyVCqXjzfbvMpwWOvOzGTtWHU+/ZKJvU8aATEh072C/wpVxOjYy7UYvfSdpI0jcdCIlLx6hHHYDXoJOxwFGxXEXc7k10HDFYMHYDTeObW5qzZUYGV8AI9Tqf0lhHVlqRxhhCWps8NmXNBojs/wcrFjr4XpGVGWpgAhPhXoUttNqjZZ0FQZvkfoHaqUo/ERpMyv2ZsGfpEqx1i7P4lLFlPGWdZ56gH6vbPHi04ra/m/xSa/Jxa7m3HjDEuICSyWPrp2nvvIpHrWDQMkXyq4ystmi6pXILb0XHUbT9lBCcxSkpGrVVF7tbKcnnQ707amyQy86xAW0aCn+qZfNw6owkxQ+3yRr2m6rVy3cwEuf/+X7ECs+2FGBSk+J7pFjy4NfjDcnPZbgO767roXW5n52w== X-MS-Office365-Filtering-Correlation-Id: 29c91ccd-d768-4f6c-599e-08d4398d1aed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BN1PR02MB040; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB040; 3:Ns2iuO7ICsRkLmuvPucKmB8cR4hu0yWFF17PfnPP8MqGeTQuObL1DRoGANStvQXaiJZ1z4OQSS/1E52pwViI41Fwg1AmvCXF85SoC8D0l2+zmEclzegF1fRGIo90vDcKIctGQEN5IhQKsbuxVYNEWCwV83v9sPxF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cbn4ShsShTcyiAESEq1/fGw1/pBHQdyNvyJWGOihhd9wdsvHh6dA== X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB040; 31:Y1Z7qt3cAS+RuyqMu/eToTDiZ7DIWF1DrEpeiAUdQFpvgCOO+9HgZ+bfaJAgOjkkqMQFQB5g4YhrG8Aib3fgtqX8hx1RolhC5/Rzpl3S4Q0pAC/hhhfrovOau/pahG8ApSbmO8c1S18klBSHM/MEC0w9/V2RCggAJRw2iwuTJHnZDTATK341G9e6bBqAgzpTzTSHHjhWF9lyZ6Rjwcr0bAiiG2jVCvvlMy1qFvo2rVajn2Hc+kje8KFLCs1eEjrtJbDdH/G/acsTGFr9WWOrHA==; 20:XQ2ZGxn7UNHVbj7qmG5ZgOIUXa9exq2gSHJhWXnjmTfqOxT5vjCTl/FoiOZQA/eux3ZpTposVfx/AXXYNHo+Kz6aCVYx0P3xQFoXYxd7UhPO8A4KTMRTAw1A2D76qfWq68BcbO3+VaxidSWjupNXTTSfvvM3HwtLqR2yj9VxpeuVOrOfXXMnRxmJo+MvbBudmziOSC6o3sy3zLKTGcPO1pmgigXezp4a9+q6dnTblah4wJwAn5YjSIzATtWJ5L8rfoUj5tCPD+gx+SBeCR++KJmg5vLhyGE4P8EdmrTx/i42UERGHHxE15Mam5cmZhMxv6tDcg7bSDZWbNd089g6q2SALnMpsd/iCgSCJsAKagp6WDrWCMhiLv7aGgu2ySo/SDZoq0ggflrAcKY5PBgVK2NRp/qt3246nuJhX9YhFO1j0WUZyzXQL/7Fo1QQ8ZKOmTJFDsC6/ajcgDcw63q76+gEvkJLNby/KTeLVFLZhYpBHZc4M3i9oqVpsUuYZF4+ 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:BN1PR02MB040; BCL:0; PCL:0; RULEID:; SRVR:BN1PR02MB040; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB040; 4:/tJlhxt8AXGJdtN+CbWbqkQitQuHl4U4/7cyAHqU26oqjd3IR7cpPAvjPpEyY5gsTuo1bsIlpSnm7eU3qzk5VAebHG8O6nOaMQydgcDbmdFvBKDBakRBR8SlaHpeoobYnCUKN39PlI7zLTtWP7bKp2p24PM385X/BOrm+gPaDiPZtWXpxh6eNpV8nJ4KkAOzGXLYeJoN1hXaNSkXyF2e0++eyCRFKc59IZQmj3Nzo2E/sXFELaK/h7ZiWEgHQhn2gsykY5cWHmPbvQmmsMy1hwWH1r74icqgf2NeUqE1zc0nOcqieNNcTYecTyDarrS19yLFxQCeVqM/sQPrBbkRynhG1lTTucsc4RWJotbOx1zAP1HXX6A1xer/pMCGDug7jCKSh5Tb9ayfUOFs8YrwsEvdMV0OinpC37/4uWmwt8n8JC1NgL1L4wRVGdUZVFd57IY+zVAqLb9SWKZgj638+MbFFsS2bfrTqd4DgJOHZUfp+C/GUKzrYTKbseAfbgrlxd+vF0AlK6AwlU1hYTo4uFLlvGe/RpueKyFuOykyWHZk1OKDc+Ps2olXpehVGaP370NfrDpUJ2t76SYERorvbjXrJ1Ixqk6L2KcjngMbNZZFG+Pmd+0aVmjndSZJlUis6SASPFy90czXxmpDJmDnqAtFimECFgQ6SdDmw3WMlrNyu8ejfdl8fRNeX7SysPWDoQ4bZbP+zNxyKALlIhy8ug== X-Forefront-PRVS: 01834E39B7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR02MB040; 23:qoAtFO4JI7eGqAf4u83vEbPiM2HiiHBaZxR1WNPLRQ?= =?us-ascii?Q?52B89mgZ2KDETehX2E29z7On/W9NY9HFva48lvgCFYMCMT6vLAVawZVzCCzr?= =?us-ascii?Q?EMB9/Uq1BzMMuf9+jdki94BYnYLqFes4fDM6ZGVr9nSDpG7Htcq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AZOgl5liYbOc9gVjdVxghsMQ43WpLLlcVdL2Y6iyfvAmt7Rxp?= =?us-ascii?Q?aldXuymiTj6jdGEzJIT7T2vqu7oWbvjGdQytuz2Oc2A5fR0hmg2mEEvDAtg6?= =?us-ascii?Q?NP3QjtzzdQf/iWWU72OlXQbGf+qiC+?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB040; 6:9v/XSYyEW4OVnifMLPXTi/wrvrA9pLqQy/SnVw7cjbeNYn/AogNa/9liWeddf8JOBZOkOBALO6P+t5V5pjPXK07xDPaxIvScKrZec4P8EDDfo5+yqu20Z7pcbbZNWZRv5IHchMBifGEGVAv0b9scRlZg44AVOS98NY50nXs+uHjyXukWRwNCNUKfuh26/MCXEKFfMIFTb+TTdtd+F4spy76gpBVMwBICecNFUsOJtAHgCav96KGx6uJ45q+9ihmCBO75CGY6kl1lOl3tg/rRxr5oWcKiDzATUj8UdXHT+ELuhyGR4C/BPh+YwQtc362ZxnZwJthTxdlesMviQKIxR3dnQVpJbXMqG6QEkeSzrcq8kxgjjo41iMc9N2xRAjtYiiLxrv5bGP2tjtLYXO+pzebvSY7KqaAc1Bh8YsO0LF29412+tjJyzYtwAcESwPX+NQkT6ONGuosQRWpeyMMrlA==; 5:HWRfdE/mYQNR7dk7hXPtwprvq6LMaspTpwhZSQ/ud+erquXDPWPJ43n1gGFCEEsTLDNLZWDU+cwt6MW9xj0wjHIri6iXxQi6JxWnFTMPQ1lFJ09D4QxDIy9qlB9+bM9jgzxdZfjlMEFsE8+fpTQjeVOLkGNUnkfLj6lkCvtYT/I=; 24:AeL50MYhD6ADagNywETBC6q0EVgGUwIGP8ceASWh87axrGT+jszkITUh79+mPU7Z92g6yJH91LalFAzOk7vO2+h3kmsPSlHjVY/uDcujeZw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB040; 7:0/E9wmjbB4vDv+fMEcU4p7pvlQuHvehjW3EoZuTqkoa6qHwRPC9jUcsEZ5oVu9P1VXweLvlN1VeZrt5Suqvm7KGfFwNfQ2OfqZhMVhAbkzHT7tbRBaMwe2bGhrk0amczEOuiYSd8aqPumfqvq+YPon/WnuY41E/nxtckd9OXycw7x/N+piW3jP5YI29+KDyfNv5U4dizQvzaWB9M+OYqoa4mV+tobR2BoUQsIeWyP+3gjt3XNPUX689oUMYuNQIZjivv6zrMcr+7HUI/3Tm9Tjg6Gd1Sqh3D3/HxHzeb54kwWrSn71r5j0ZcwNxAuGmLGl+SjjTh0Zpz6zFAyc4hRoKYxHRtjfkiUCvH9iqAAINPodazFQcI8LnN8Du+S0AeCBZ6cXjHW6/nMLQd9YAw9t3QRHG7rBFlPEqpLML6V7ztozwxq6YrzZ7YqglRlj40ESQHiq4DunGC6GZHXVjqdQ== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:15:56.7273 (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: BN1PR02MB040 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 It is strongly recommended to report kernel warnings once instead of every time a condition is hit. Hence change WARN_ON() into WARN_ON_ONCE() / BUILD_BUG_ON() as appropriate. Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky Reviewed-by: Andrew Boyer Cc: Moni Shoua --- drivers/infiniband/sw/rxe/rxe_comp.c | 2 +- drivers/infiniband/sw/rxe/rxe_mr.c | 6 +++--- drivers/infiniband/sw/rxe/rxe_resp.c | 11 ++++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/infiniband/sw/rxe/rxe_comp.c b/drivers/infiniband/sw/rxe/rxe_comp.c index d369f24425f9..e912e5396e8c 100644 --- a/drivers/infiniband/sw/rxe/rxe_comp.c +++ b/drivers/infiniband/sw/rxe/rxe_comp.c @@ -254,7 +254,7 @@ static inline enum comp_state check_ack(struct rxe_qp *qp, } break; default: - WARN_ON(1); + WARN_ON_ONCE(1); } /* Check operation validity. */ diff --git a/drivers/infiniband/sw/rxe/rxe_mr.c b/drivers/infiniband/sw/rxe/rxe_mr.c index 8ca3acd327b3..8cf38b253c37 100644 --- a/drivers/infiniband/sw/rxe/rxe_mr.c +++ b/drivers/infiniband/sw/rxe/rxe_mr.c @@ -123,7 +123,7 @@ static int rxe_mem_alloc(struct rxe_dev *rxe, struct rxe_mem *mem, int num_buf) goto err2; } - WARN_ON(!is_power_of_2(RXE_BUF_PER_MAP)); + BUILD_BUG_ON(!is_power_of_2(RXE_BUF_PER_MAP)); mem->map_shift = ilog2(RXE_BUF_PER_MAP); mem->map_mask = RXE_BUF_PER_MAP - 1; @@ -189,7 +189,7 @@ int rxe_mem_init_user(struct rxe_dev *rxe, struct rxe_pd *pd, u64 start, goto err1; } - WARN_ON(!is_power_of_2(umem->page_size)); + WARN_ON_ONCE(!is_power_of_2(umem->page_size)); mem->page_shift = ilog2(umem->page_size); mem->page_mask = umem->page_size - 1; @@ -375,7 +375,7 @@ int rxe_mem_copy(struct rxe_mem *mem, u64 iova, void *addr, int length, return 0; } - WARN_ON(!mem->map); + WARN_ON_ONCE(!mem->map); err = mem_check_range(mem, iova, length); if (err) { diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index 3435efff8799..6dbd069689fc 100644 --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c @@ -307,7 +307,7 @@ static enum resp_states check_op_valid(struct rxe_qp *qp, break; default: - WARN_ON(1); + WARN_ON_ONCE(1); break; } @@ -495,7 +495,7 @@ static enum resp_states check_rkey(struct rxe_qp *qp, } } - WARN_ON(qp->resp.mr); + WARN_ON_ONCE(qp->resp.mr); qp->resp.mr = mem; return RESPST_EXECUTE; @@ -808,9 +808,10 @@ static enum resp_states execute(struct rxe_qp *qp, struct rxe_pkt_info *pkt) err = process_atomic(qp, pkt); if (err) return err; - } else + } else { /* Unreachable */ - WARN_ON(1); + WARN_ON_ONCE(1); + } /* We successfully processed this new request. */ qp->resp.msn++; @@ -1396,7 +1397,7 @@ int rxe_responder(void *arg) goto exit; default: - WARN_ON(1); + WARN_ON_ONCE(1); } }