Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1497722ybz; Wed, 22 Apr 2020 23:17:06 -0700 (PDT) X-Google-Smtp-Source: APiQypIslcKh5NOw+UapN/NmPRSsHBuLbvuAEvfJE0kEKsv1uexfOvsXcQpgT640zrl5uuSBN3+i X-Received: by 2002:a17:906:4548:: with SMTP id s8mr1346106ejq.349.1587622626491; Wed, 22 Apr 2020 23:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587622626; cv=none; d=google.com; s=arc-20160816; b=nNPHgjV6ZBtb639d1hNba5O3Y/d4JG37PnmtmYDXueE8crHxcoZozROl61cH9FWyPj 1J2iz4pNtdEv/etauoRJOmk6jZY5GHQ8ioGuBPNc12TxFvup0uHE4NNoPawGnuJyCw1k rWB2yN3bztg9JTsh0ETLEguATp+kLZEfHkAa4IKWiY+phzRF0q2MahbQHvOHhDw0wBv3 XsfQ/r7JGNv9h2chEIU/rXwYs71q5JBZBOjEDybYUh0oU+AXgdwXu8a3Wli3xeg41g7E 4zmyFO5bv0TsxipNCjtyjmqV2ukHKhuBHf/Acpzaw+ila0qq6P/L6kWwQ64R75Au/u/z a1Ww== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=6wD/pfHDKzCaMPPoFOc73BZY0OCmQeyWlSIyKrUDLIg=; b=LLD6mN5pfEAKOlZ69LdrHMKf4WAUwkWJvSv7tiMMzpMGIzxcuD+VvJB8p1ZvYVdcCG GIiSyv+i4i2yRC7wu19noZxdW7Gdaf8YHs4PCLHX960TQvDAJswXiNXkSK4NM70WSNfD c/pRoXPb9JdNoBvwbablLdMsQBkKdtKT9Lc+3SWU6LZggmdiPXNHcU4MDQ94z38vLd9p ra33fgufe15V/2kUaCs5g8EebKixIQabieBAdNYNKbsWzZnJE94te7m5uFwfx0dJH6mx CL57EjzLFJGM4k4nWbAzZuaLvhGNUlEnQYQz4L34HjNxdJipS2RdtURjCt12Efs3oaPH cIZw== 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 e9si678795eds.63.2020.04.22.23.16.42; Wed, 22 Apr 2020 23:17:06 -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 S1726508AbgDWGO0 (ORCPT + 99 others); Thu, 23 Apr 2020 02:14:26 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56314 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725562AbgDWGO0 (ORCPT ); Thu, 23 Apr 2020 02:14:26 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 45E3BCF9CDD682DBC164; Thu, 23 Apr 2020 14:14:24 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 23 Apr 2020 14:14:18 +0800 Subject: Re: [PATCH -next v2] PCI: dwc: Make hisi_pcie_platform_ops static To: Zou Wei , , , References: <1587611883-26960-1-git-send-email-zou_wei@huawei.com> CC: , From: Zhou Wang Message-ID: <5EA13239.5070908@hisilicon.com> Date: Thu, 23 Apr 2020 14:14:17 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1587611883-26960-1-git-send-email-zou_wei@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/4/23 11:18, Zou Wei wrote: > Fix the following sparse warning: > > drivers/pci/controller/dwc/pcie-hisi.c:365:21: warning: > symbol 'hisi_pcie_platform_ops' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei Reviewed-by: Zhou Wang Thanks, Zhou > --- > drivers/pci/controller/dwc/pcie-hisi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/dwc/pcie-hisi.c b/drivers/pci/controller/dwc/pcie-hisi.c > index 6d9e1b2..11f5ff7 100644 > --- a/drivers/pci/controller/dwc/pcie-hisi.c > +++ b/drivers/pci/controller/dwc/pcie-hisi.c > @@ -362,7 +362,7 @@ static int hisi_pcie_platform_init(struct pci_config_window *cfg) > return 0; > } > > -struct pci_ecam_ops hisi_pcie_platform_ops = { > +static struct pci_ecam_ops hisi_pcie_platform_ops = { > .bus_shift = 20, > .init = hisi_pcie_platform_init, > .pci_ops = { >