Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1378469ybz; Wed, 22 Apr 2020 20:03:41 -0700 (PDT) X-Google-Smtp-Source: APiQypLcm8fRh4ZUc0p5U0kPVElRICdWswxCKw87zck7r+kx6mRJ+HaAIAhM1CQHZT+uL9Rr2JAQ X-Received: by 2002:a50:d615:: with SMTP id x21mr1089818edi.62.1587611021510; Wed, 22 Apr 2020 20:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587611021; cv=none; d=google.com; s=arc-20160816; b=xGh5ZeXRvWuMFgjJ73+NjOJggVyl1sLD/mb5lYUwFQqp7x3qpdnq3pnYWoPG7hqEd1 +Vm3gVUgoEjV29IIMlfsHlj1SucVSlSh0amUR9URNcSXVJVJe1BNx0dbytXwWgBRe7TK t9mT0ezx2SyYWZTel5hewCyWTSDS5tKWSUlMGR+yxyKqS6YdUL3YpbNrU/ElCfxtpdSG JAutjiMUvuJ/GPpwESRsD8IDXDiJK+RDAcK8gyg1AoF1Z3QpETQrFdQm0jOdxx0UyKZC vd1Ep+0YbLHl2Nfx+A1ddh/esqqqPpdltEF9VuHgaNcKIBElmgOOaZBAoL0VzItlEIip omCw== 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=ACK3o7rdYLcv6r3fr3rCJYPGJEMK9vbj/CkPh5Uh92o=; b=wDmcIvfUwl7nmmwjmSVajptUX6Hd/vyitwS6V3ugRtGYnFVjAXDVxhcPk4y0v7/698 Ir4lCtHLurn9lxeYx7x6rleSoWJchPg+IFhqCasnciLf3pZy6YRQiv0DLcr9G8FXRpm1 Hw18aTWcGvxB9+f7DRqDLPp7aW0ebv4hbPNBZgmmnz8tkemn7Y3vt+Ipq0sgPABf/NgT q8woknczyMYB3oyX7nIDFmEZNDZ/QfNOWOSbKWEXt+UORgzgWG4WApIl6izOMkOjQl2c rQBH3c4WF8fr4Hiv+5Tuu05RTCSnk0GAXLBHH/XH34QQo8vEYt8DmJciqo2DIsqyLBqz ee+g== 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 k2si518528edh.267.2020.04.22.20.03.19; Wed, 22 Apr 2020 20:03:41 -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 S1726674AbgDWC70 (ORCPT + 99 others); Wed, 22 Apr 2020 22:59:26 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:58894 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725562AbgDWC7Z (ORCPT ); Wed, 22 Apr 2020 22:59:25 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6792FFE03BF355170A09; Thu, 23 Apr 2020 10:59:23 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 23 Apr 2020 10:59:14 +0800 Subject: Re: [PATCH -next] PCI: dwc: Make hisi_pcie_platform_ops static To: Zou Wei , , , References: <1587548829-107925-1-git-send-email-zou_wei@huawei.com> CC: , From: Zhou Wang Message-ID: <5EA10481.1080604@hisilicon.com> Date: Thu, 23 Apr 2020 10:59:13 +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: <1587548829-107925-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/22 17:47, 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 > --- > drivers/pci/controller/dwc/pcie-hisi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/dwc/pcie-hisi.c b/drivers/pci/controller/dwc/pcie-hisi.c > index 6d9e1b2..b440f40 100644 > --- a/drivers/pci/controller/dwc/pcie-hisi.c > +++ b/drivers/pci/controller/dwc/pcie-hisi.c > @@ -362,7 +362,8 @@ 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 = { > + } why adding "}"? BTW, static is OK here. > .bus_shift = 20, > .init = hisi_pcie_platform_init, > .pci_ops = { >