From patchwork Fri Apr 17 07:35:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Yan X-Patchwork-Id: 11494301 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5D3A96CA for ; Fri, 17 Apr 2020 07:10:11 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 40BEA206D5 for ; Fri, 17 Apr 2020 07:10:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 40BEA206D5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jPL8A-0002Ms-Mp; Fri, 17 Apr 2020 07:09:42 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jPL89-0002Mn-NU for xen-devel@lists.xenproject.org; Fri, 17 Apr 2020 07:09:41 +0000 X-Inumbo-ID: 653c4366-807a-11ea-b4f4-bc764e2007e4 Received: from huawei.com (unknown [45.249.212.32]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 653c4366-807a-11ea-b4f4-bc764e2007e4; Fri, 17 Apr 2020 07:09:37 +0000 (UTC) Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 28D6622F2F9E658195FE; Fri, 17 Apr 2020 15:09:35 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 15:09:27 +0800 From: Jason Yan To: , , , , , , , , , Subject: [PATCH] xen/pci: make xen_msi_init() static Date: Fri, 17 Apr 2020 15:35:53 +0800 Message-ID: <20200417073553.42873-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Hulk Robot , Jason Yan Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Fix the following sparse warning: arch/x86/pci/xen.c:426:13: warning: symbol 'xen_msi_init' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- arch/x86/pci/xen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index 91220cc25854..0d06f12ccd74 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c @@ -423,7 +423,7 @@ int __init pci_xen_init(void) } #ifdef CONFIG_PCI_MSI -void __init xen_msi_init(void) +static void __init xen_msi_init(void) { if (!disable_apic) { /*