From patchwork Thu Jun 18 22:10:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Duc Dang X-Patchwork-Id: 6641241 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D7C78C0020 for ; Thu, 18 Jun 2015 22:14:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1CCA120898 for ; Thu, 18 Jun 2015 22:14:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3DEC820896 for ; Thu, 18 Jun 2015 22:14:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5i2J-0005st-0C; Thu, 18 Jun 2015 22:11:51 +0000 Received: from mail-pa0-f42.google.com ([209.85.220.42]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5i2F-0005nS-C0 for linux-arm-kernel@lists.infradead.org; Thu, 18 Jun 2015 22:11:47 +0000 Received: by pabvl15 with SMTP id vl15so23960248pab.1 for ; Thu, 18 Jun 2015 15:11:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5xy2ZL0RJQbPRXQJdDEddwgTjtaMLYyoaLmZj1jE7SA=; b=i5nBJYjaSjd61rOC+Yl/aQlkSlrRbHph8YJpKdH0DpKRXiRlsqcE0I2QBmUdBrB6bg UcAh0c5ZfRtx3DU7VELy8kwF1LT3McKc6caaDq7+1FGn2+u6q5QFsoEK5x6jpiXKGTpH v4fCBBWFAKSyVQEGqXpOJ1kb+iGFaxZ/4sE2Iht0jxZ3rgfEBO8qAE+VhFPojAzbzPbg UT9oxrsXkPpK0dK4Vur2NBu9znSxneL69kak4AEQoUzjlUmajvBAhfqm6LIjn3PIiZog AewMc/Mfy5gvftZyr8WwCBPWc/Rpn2QEMOqhVtyYR0fFGfUPI4aOEYH+SHP4KyUk4km2 4uxw== X-Gm-Message-State: ALoCoQnF03dfK77qn2ACkLCg+puIIVbg9TieAY8lSxPkD3ic9YnoSlHAXcgNMbCiSC4TUK2Hq2s5 X-Received: by 10.70.91.234 with SMTP id ch10mr25616673pdb.39.1434665486049; Thu, 18 Jun 2015 15:11:26 -0700 (PDT) Received: from dhdang-Precision-WorkStation-T3400.amcc.com (67-207-112-226.static.wiline.com. [67.207.112.226]) by mx.google.com with ESMTPSA id j2sm988867pdk.21.2015.06.18.15.11.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Jun 2015 15:11:25 -0700 (PDT) From: Duc Dang To: Bjorn Helgaas Subject: [PATCH 1/1] pci: xgene: Fix compilation warning Date: Thu, 18 Jun 2015 15:10:58 -0700 Message-Id: <1434665458-28354-1-git-send-email-dhdang@apm.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150618_151147_446729_8FB20B1C X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: linux-pci@vger.kernel.org, Duc Dang , patches@apm.com, linux-kernel@vger.kernel.org, Tanmay Inamdar , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP commit 979595bcb8da ("PCI: xgene: Allow config access to Root Port even when link is down") removes the port->link_up check, which makes 'port' become unused variable. This patch remove struct xgene_pcie_port *port declaration to avoid compilation warning. Signed-off-by: Duc Dang Signed-off-by: Tanmay Inamdar --- drivers/pci/host/pci-xgene.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/host/pci-xgene.c b/drivers/pci/host/pci-xgene.c index 3684126..105fd83 100644 --- a/drivers/pci/host/pci-xgene.c +++ b/drivers/pci/host/pci-xgene.c @@ -137,8 +137,6 @@ static bool xgene_pcie_hide_rc_bars(struct pci_bus *bus, int offset) static void __iomem *xgene_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, int offset) { - struct xgene_pcie_port *port = bus->sysdata; - if ((pci_is_root_bus(bus) && devfn != 0) || xgene_pcie_hide_rc_bars(bus, offset)) return NULL;