From patchwork Tue Mar 14 12:18:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9623119 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 A4D18604A9 for ; Tue, 14 Mar 2017 12:19:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9183E2853F for ; Tue, 14 Mar 2017 12:19:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85AD528544; Tue, 14 Mar 2017 12:19:26 +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 062F42853F for ; Tue, 14 Mar 2017 12:19:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750949AbdCNMTZ (ORCPT ); Tue, 14 Mar 2017 08:19:25 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:64784 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbdCNMTY (ORCPT ); Tue, 14 Mar 2017 08:19:24 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0MGmMn-1d0hhX1wHp-00DVYb; Tue, 14 Mar 2017 13:19:02 +0100 From: Arnd Bergmann To: Mike Marciniszyn , Doug Ledford , Sean Hefty , Hal Rosenstock Cc: Arnd Bergmann , Dennis Dalessandro , Leon Romanovsky , Don Hiatt , Jubin John , Masahiro Yamada , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] IB/qib: fix false-postive maybe-uninitialized warning Date: Tue, 14 Mar 2017 13:18:45 +0100 Message-Id: <20170314121855.237347-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:FGHAjw55z0xwGsamlFpmf3ukiPFa4XDwvo+kg1P9eL/O5B6C2VF Q5uX6CXnqZzdYJzHrhaRKnmAXjN2KuoYd7zXtSApY3suIDJ7f3eWv6TwUirEz8xqkyZ/wy/ oSZcDvHBT/5XcM3hnKG3SSjd90hWQIIotuaaoeDKDPx3GsF9NERAaEhkmyjFRbGzhTqZ6UK mlhCdVJ3EFnVHhvyUuh0A== X-UI-Out-Filterresults: notjunk:1; V01:K0:g5hDIvU8pz8=:fAiFpWyt1Fi1ZhPVEBYd66 2EIsom2Z2KpnRJ2yjfoqVEHgfVA4mhA0duPoulCIoPqJZp5wADXYY2vxA0wlC9EOZoMGTm89l lXDiwXVGFh+SojjpSGBlRBbRsIfnK4jOpBK9WjzP1+mJCAey0m9sllgxWVQuCPXS2chbp8AwX Zdo4ukph8P4YKS8uYJ0uxDiu3+ReDtIQzA4oKFp1MPm3IM++EsYwim05H7nrdWp9fWBWGc61M DaoE4w0I28Q3yx6qZefH3wIgo2R3vMBZloaFfcvkk0u6KoerQ/ayjp/oPQJcRIuEnENR5LzUh z7QT5iBNPnMuyDb/wt7YK08giNxMNVt2QLmFQSHQnVcE3Qop6sez1gkP5/bbm05JRwHgHvh+i AKDaOHjq1y7Tp7czu6jTHbI4pLoTmbw79ymJVkntvAeER0aNv0ZTRfRW54ozXOfILa/VOIbGC AN8/tsipbQbjfQQWIxRsd+CI2hPyO38qUh/INWbN2knDPjcnOrlHp6tid7NJh3CzgWLWGCEM2 EmZhjDCYgQqeWSdP94lC6gtuPzIX3KSFF7OOzuK8R+swE28jEg79Nb2Zusuol41D6TY5UZsuo S5bdLvclu6HPBvns5ovgmERoxItAyVH1HyxhueYLP7xsvHWJUajN4B0TDTx/KnADjnC6oHGsp jq26YX+3oRsiLyTYNeo6rxL/TG4fyG3BbMPzMb3Ew6PJZwVCt5f6TaRadzQbDAS5T5so= 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 --- Submitted originally on Feb 27, the patch is still required on v4.11-rc2 to get a clean build. --- 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; /*