Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp630838ybz; Wed, 15 Apr 2020 15:31:08 -0700 (PDT) X-Google-Smtp-Source: APiQypKlEiUka6XnNviHZ0x7w4vsG6YENCTxOhMAEyeJAGh8VhtIqui2XjrocGlxT27VXD4XF22G X-Received: by 2002:a05:6402:1657:: with SMTP id s23mr25220144edx.74.1586989868306; Wed, 15 Apr 2020 15:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586989868; cv=none; d=google.com; s=arc-20160816; b=izeh+2y+vAq90iB+t53KCQCpEWHdjATRJqg82eHQXgKWhqZN0XMIUVTGjoydMj6sfs qJECEjqm7sWJIPRatqzDKM+5mD1Bz7SbEoqYlrImS9Vd1KZEarK/Pjq9LrZTIb4MuV3b uPJqZryGfy8DpgzrBVu3jlMp/XbftHudx6/nn+zWYOLoX2UhLmnXy3gCAhOf3z8N/X1k iVOwmD2w4BxiKXVsyWAFXmtj5QCXOEQzBrREf/du6Cf8XMZTGZ2vvxawnF2Mpg149oVC +Dr9fpKjDGHRy2BMdr8iJqe8VjX7UQeNomIE8Pr0j7dxsbTweTU/kEHMuCIUwAPIhHyF kEiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=PQwNYsqmk1H5nasFuZiRRXfx3DAeU5xXot/tnODZ4Uw=; b=MMAt9Hc8DR28BnrYLz356VlenuXGNA3/1zmhnVfgd4dIpL1d+fkRha5nanZ1wOUTs0 pFmy9Mf78BAijyfSPGJKC/c13STlR8tnq7sQ8SgNf65zt8ejMUAP3vM8cE9jThBg1SWW aWezfHIwAAsjvwOuUfRqxawS3+QObv1XeZu+CYYPmoO4ARPWvv8DZtc5XYfU0dW0t14i bSWaUuJ+G+cFJTRSdnKTMv59BQUncu7bZMKj8mUJ3wjozzy4Z8QavMuCOf5ek5nagOsS qgrNo7veJJEoYxCuMLcVIMfMO2uDzsAjmdTvJ75FS/CMznD3Eey386MgpwxzVCesGE5n 5UHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch28si369659edb.247.2020.04.15.15.30.45; Wed, 15 Apr 2020 15:31:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894387AbgDOIXl (ORCPT + 99 others); Wed, 15 Apr 2020 04:23:41 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59730 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2635882AbgDOIXg (ORCPT ); Wed, 15 Apr 2020 04:23:36 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id E105FAA5669E20D52871; Wed, 15 Apr 2020 16:23:34 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Wed, 15 Apr 2020 16:23:26 +0800 From: Jason Yan To: , , , , , , , , , CC: Hulk Robot Subject: [PATCH] PCI: dwc: intel: make intel_pcie_cpu_addr() static Date: Wed, 15 Apr 2020 16:49:53 +0800 Message-ID: <20200415084953.6533-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/pci/controller/dwc/pcie-intel-gw.c:456:5: warning: symbol 'intel_pcie_cpu_addr' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/pci/controller/dwc/pcie-intel-gw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-intel-gw.c b/drivers/pci/controller/dwc/pcie-intel-gw.c index fc2a12212dec..2d8dbb318087 100644 --- a/drivers/pci/controller/dwc/pcie-intel-gw.c +++ b/drivers/pci/controller/dwc/pcie-intel-gw.c @@ -453,7 +453,7 @@ static int intel_pcie_msi_init(struct pcie_port *pp) return 0; } -u64 intel_pcie_cpu_addr(struct dw_pcie *pcie, u64 cpu_addr) +static u64 intel_pcie_cpu_addr(struct dw_pcie *pcie, u64 cpu_addr) { return cpu_addr + BUS_IATU_OFFSET; } -- 2.21.1