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: 6641221 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@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 B13AFC0433 for ; Thu, 18 Jun 2015 22:11:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D622B20896 for ; Thu, 18 Jun 2015 22:11:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E759D20898 for ; Thu, 18 Jun 2015 22:11:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752752AbbFRWL3 (ORCPT ); Thu, 18 Jun 2015 18:11:29 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35652 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752719AbbFRWL2 (ORCPT ); Thu, 18 Jun 2015 18:11:28 -0400 Received: by pacyx8 with SMTP id yx8so70145296pac.2 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=dS/3APJ1gQko1tqJj9Cb7HYIfhjtSBYUijoHwTgMa3RWojKjk1hj4dSnl7Ujr5Secv C5afmqOj5hBnjS6waAEusUAJXEhC5hV0b1VNu9OHg+H9LYBy8uWUVlurV05Cra5B98PY 9IS9IkPkzpCJ7vR4OPcTzsfEBZyMakLyPbLkS+G3IUX+UQrRPYhaTJjVW6NzccYLNphA KOzVEY9+gG9/sGJbfNr8jc4S/JZnyF7dTHhl8cUrXuNL4Lmp7CPaCxFha9oPWHcUt4PZ Tm/9ZTZogSX3PeYZKViTya8Z6tdhRTHpqWr3ApxLGHgbSnkgCu7zzpUOeX4y6fOmlOHW sHzg== X-Gm-Message-State: ALoCoQmMb0bbo9yKrr/CyQLxwMjK4/cUVKsOZYx29pkixuoV10sgNHLXT+ciSHm2NYb5xHEIBIoM 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 Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tanmay Inamdar , patches@apm.com, Duc Dang 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 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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;