From patchwork Wed Nov 1 21:27:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Willy Tarreau X-Patchwork-Id: 117734 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1371624qgn; Wed, 1 Nov 2017 14:28:13 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RF7o21xVaWpq90KExg7ysoz5hz0P/6jP39WczPXgr+p0GLM3mxK9X2mLImdCPXpL5rReYS X-Received: by 10.159.229.136 with SMTP id az8mr905463plb.59.1509571693120; Wed, 01 Nov 2017 14:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509571693; cv=none; d=google.com; s=arc-20160816; b=SiPSYzj7QHJmJyJmYj27WunzvEfjHpsIk1m44I17U5V0IPXT4ACz4cG5bCH3wHa3cG PyYkDovST5rs1MQ1OUwHvGnNxZaBbTwFwCk0LowLTS94FNzUTDGHW11BP6lSP/FaKFUV ihnih5J7mMqUCFV8ENDiHLkM7uNeUvpj1yLeYNoopm1HarMjzUU6m/5DspJMRp0q94GN 4/L39M53WkemF99kEqWPQ0ztxvQhQ+9wcK6H9tvs5jO55NgrdoTrKy64JXzHLkWalL/C CnlM10yRS1H+de7t8RjDS2tG85cc9TiHT0PMZKfoDDwAGz6ypS7AcepgMPL/fhl+NN9O zNMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=c+LO7zMEf6a2RU//iE4jo6CkCfz1qh6IVU/cRjlUo3s=; b=Nvwwnwo3rVS5Q/TV3bmnGm/oSLSRXCNG1riJ3Gv3Q9l46M92VrQbaA5500lmE/0Haq GcHaqHOiUWRL3qCThauwR7r0qerQWC5rxizzp0wfTiurHo6g2ZFdpl/5FdKAGk7hnvVq F145loNGHfQiBZzwwFx0FluJlLuawOFLZKgFEjTEBLWhgHRM7vTmRouy1z9jcIpVylrV liJVkIBbaD2dvHa85/NKEor527Gn+3TFcFT0SGJ/9Wj4L1EClboBRW3kR9mJqoDBujx3 DakxuVMvLlNoEnJhC7BvSMYACatMC53+djz4dbpMmUpxlBsYjBdcRh0emBmqXZ0zQRU+ dnOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13si1767665pff.341.2017.11.01.14.28.12; Wed, 01 Nov 2017 14:28:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934131AbdKAV2K (ORCPT + 9 others); Wed, 1 Nov 2017 17:28:10 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:35332 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933712AbdKAV2J (ORCPT ); Wed, 1 Nov 2017 17:28:09 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id vA1LRC3B005117; Wed, 1 Nov 2017 22:27:12 +0100 From: Willy Tarreau To: linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux@roeck-us.net Cc: Arnd Bergmann , Doug Ledford , Willy Tarreau Subject: [PATCH 3.10 135/139] IB/qib: fix false-postive maybe-uninitialized warning Date: Wed, 1 Nov 2017 22:27:00 +0100 Message-Id: <1509571624-5001-36-git-send-email-w@1wt.eu> X-Mailer: git-send-email 2.8.0.rc2.1.gbe9624a In-Reply-To: <1509571624-5001-1-git-send-email-w@1wt.eu> References: <1509571159-4405-1-git-send-email-w@1wt.eu> <1509571624-5001-1-git-send-email-w@1wt.eu> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann commit f6aafac184a3e46e919769dd4faa8bf0dc436534 upstream. 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 Signed-off-by: Doug Ledford Signed-off-by: Willy Tarreau --- drivers/infiniband/hw/qib/qib_iba7322.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.8.0.rc2.1.gbe9624a diff --git a/drivers/infiniband/hw/qib/qib_iba7322.c b/drivers/infiniband/hw/qib/qib_iba7322.c index 5f5f20f..c61f3e7 100644 --- a/drivers/infiniband/hw/qib/qib_iba7322.c +++ b/drivers/infiniband/hw/qib/qib_iba7322.c @@ -6670,7 +6670,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; /*