From patchwork Mon Feb 27 20:43:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9594221 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 0585460471 for ; Mon, 27 Feb 2017 20:46:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC2D527F9F for ; Mon, 27 Feb 2017 20:46:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0E3C2832D; Mon, 27 Feb 2017 20:46:21 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 7C77827F9F for ; Mon, 27 Feb 2017 20:46:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751620AbdB0UpP (ORCPT ); Mon, 27 Feb 2017 15:45:15 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:60859 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751372AbdB0UpL (ORCPT ); Mon, 27 Feb 2017 15:45:11 -0500 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0M7Wnz-1cM7VY3wrn-00xJEd; Mon, 27 Feb 2017 21:43:52 +0100 From: Arnd Bergmann To: Mike Marciniszyn , Doug Ledford , Sean Hefty , Hal Rosenstock Cc: Arnd Bergmann , Dennis Dalessandro , Ira Weiny , Leon Romanovsky , Harish Chegondi , Masahiro Yamada , Jubin John , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] IB/qib: fix false-postive maybe-uninitialized warning Date: Mon, 27 Feb 2017 21:43:30 +0100 Message-Id: <20170227204343.3575126-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:QhzTHZA9O1f4LA7jcV9U2UgMYNtDFBCylkrf8xgFB5vNvNvbA8f 2nVdHihXrXZQAI7cuo/VHA0h+0ZfK3N0Fv+jSbi9Tq4tTlTAOMnf2Z2rra4JweAoanAwGg8 RfVq2UaAd051x8FNNN9VT4aN0Rbyj0diT5pNgLuZzbBiyDlYsiBvPqiCkwDPAy/q4Ft1AmP oazQvoGcPig/DIkZUIvXg== X-UI-Out-Filterresults: notjunk:1; V01:K0:gIfEcJk41Ec=:AYgSCVqGqy16atVSf5TfkS TskUxoR3LHsbiHYHQV7m2SfN6g6KLCiODbQwgic2kt+Tp0nWL2JGZA7PacznHBd2g3kuJ9xs8 UJ9ef9xOgwBJ6v8GAt7QYuw+6xfbxug2fkFiAqLhfisOeB6Fg+FlXHx5f7O1lNOish4bHBXQV TPM5Ro4NHAw9z6gqPU7jA835TB7qspjniQywYCmi7cAe4dFX9kBbBAZj+KMl1xWhlwVhu4OzU cNfqCA+lvp1Axal91UeTfYIMuM3srOPaWE1hn8BSuh4bhd23Za2JJ0VrJHjqVUDG2+mPsU0or rCBwR8ajr57I7TOs9a+iBRxSvzTIKVjdh+9JVyaOw0pPzAdXW431CFZv/yMcMN9dmVySBza1A QCmgD0aMVPY1VtVTE35rjbK+9wlSykIrzZiQdaGe4WNxaOo+uApCDgo5kDbpzT7qmooyXREmq Z6zXexkqDKiLZRRrxMcQmQJGrDpvirSQnXmQW7gUzfHY6wn458iniGso9D8jJgxmRCnjJSMc7 yYAQuB1MERtngM6bAoflD/s4QqntEtFNmPqrw4Bgi7zsRaqajOfEobVk5JwI4nyv/sxqahqen z8lQYnFvL2vglYp4y0lsjUGnM75jVdf+CuTDrqP0q5zcZavHxHm0OfPPzIV4SU0jjzRlH3uP8 4+3lYQ4+MrscC+n8/pRe45xbA8KvengItD9zu+jMcduVtV4Lo0zM+L3WGf/SEe/QDUX8= 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 aarch64-linux-gcc-7 complains about code it doesn't fully understand: drivers/infiniband/hw/qib/qib_iba7322.c: In function 'qib_7322_txchk_change': include/asm-generic/bitops/non-atomic.h:105:35: error: 'shadow' may be used uninitialized in this function [-Werror=maybe-uninitialized] The code is right, and despite trying hard, I could not come up with a version that I liked better than just adding a fake initialization here to shut up the warning. Fixes: f931551bafe1 ("IB/qib: Add new qib driver for QLogic PCIe InfiniBand adapters") Signed-off-by: Arnd Bergmann Acked-by: Ira Weiny --- drivers/infiniband/hw/qib/qib_iba7322.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/qib/qib_iba7322.c b/drivers/infiniband/hw/qib/qib_iba7322.c index 12c4208fd701..af9f596bb68b 100644 --- a/drivers/infiniband/hw/qib/qib_iba7322.c +++ b/drivers/infiniband/hw/qib/qib_iba7322.c @@ -7068,7 +7068,7 @@ static void qib_7322_txchk_change(struct qib_devdata *dd, u32 start, unsigned long flags; while (wait) { - unsigned long shadow; + unsigned long shadow = 0; int cstart, previ = -1; /*