Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp647028ybz; Wed, 15 Apr 2020 15:53:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKm7CuDA7JS8Tb3E2vLyOVl7WWQE5smAj3I5l/+cxhrDOENaYrYajLsbeWAL40Eqhpf3qNB X-Received: by 2002:a50:9547:: with SMTP id v7mr15973421eda.324.1586991229238; Wed, 15 Apr 2020 15:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586991229; cv=none; d=google.com; s=arc-20160816; b=v/haEBMzLedmq6co4HqssGNwmJG0DW8i1iiY2Jd/+ho2cRHLh8U5ekPute7JPExaY4 u4+WratAtdKspCCQPgXtCOtfJUw+KQut/BkrN4RAgD1eycYv3tmyhUb6PQjxACKeSza2 8IBv1JFV7MPRUj3IT+j0K9vZm0dQH+OWeTMQM7QTK5QB79fT1xwwFdzth/MvmKfdNjgm wEe5avn2YgOR8jQYzVh5RFyn2kRtPFWIVodZxYGMAoGRtod2lRalThDkk3NJlHVHLqwm 3rFVU2rVKlhyvFitFO3RoIqYX4193Unfme74h4gw5bBq9e07te+ZF6mV+bAL42eTXtnT TWHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=WetuZgIdAgR08Th8p1aZ0rRp5iQraZDqgSUdq/WG6bE=; b=VTUCB1mNSpRWRKjDj9W35AJnEDhT9a82BaceVWuNjq/JCkcUMeDqt4KHH/mYfR9lhZ Nj/UXV47cfdAQtKHpHVp8xv64O0N/Jbm26UAjPdRiF6SmOl+LvaEE02nkW1I3iBBBO+/ IEQdOpqHQXhGycCjA/++HWvnVcETfXQA/Qv2Zgjxi2lDTZQLf4fa+JocSYRnAZJ4/3hI Ylgyz2bH6ibh3VH3hD2wCL/9TxzQT683ym36AJib6tEFpZEekFFhjxLVOXK+uPBiHEkD HX2rOcPH2NU2AOoecS9PT/cNthPyr06r46Z7K/cM0JMJU9YVS5kd0wFLJD+orw1bKG7V Q6JQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o18si7689339edr.30.2020.04.15.15.53.26; Wed, 15 Apr 2020 15:53:49 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2896184AbgDOKHz (ORCPT + 99 others); Wed, 15 Apr 2020 06:07:55 -0400 Received: from mga02.intel.com ([134.134.136.20]:26938 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2896168AbgDOKHm (ORCPT ); Wed, 15 Apr 2020 06:07:42 -0400 IronPort-SDR: ygNsGP78gNK4RB0HRw8sUDmSvzMEJKY0vwPEdzRcxA/3CTJzToExOkAJ+SnFADnGHC0lgMouee y/tHgHX9Nu2Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 03:07:42 -0700 IronPort-SDR: EebCVhxBJNMGFCCIJUcJimG8dbFy8SUtdHsZNe9cSASoYoSg7Qs3kyDlU5J/tctuXl4/esOHUE NHVUWyDjuO5g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,386,1580803200"; d="scan'208";a="253481850" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003.jf.intel.com with ESMTP; 15 Apr 2020 03:07:39 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jOexK-000kMO-2q; Wed, 15 Apr 2020 13:07:42 +0300 Date: Wed, 15 Apr 2020 13:07:42 +0300 From: Andy Shevchenko To: Jason Yan Cc: lorenzo.pieralisi@arm.com, amurray@thegoodpenguin.co.uk, bhelgaas@google.com, p.zabel@pengutronix.de, gustavo.pimentel@synopsys.com, eswara.kota@linux.intel.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Hulk Robot Subject: Re: [PATCH] PCI: dwc: intel: make intel_pcie_cpu_addr() static Message-ID: <20200415100742.GR34613@smile.fi.intel.com> References: <20200415084953.6533-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200415084953.6533-1-yanaijie@huawei.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 04:49:53PM +0800, Jason Yan wrote: > 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? Please, learn how to use get_maintainers.pl to avoid spamming people. Hint: scripts/get_maintainer.pl --git --git-min-percent=67 would give advantage, though it still requires a common sense to be applied. > 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 > -- With Best Regards, Andy Shevchenko