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: 11494299 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 D39966CA for ; Fri, 17 Apr 2020 07:09:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C58D8206D5 for ; Fri, 17 Apr 2020 07:09:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728376AbgDQHJi (ORCPT ); Fri, 17 Apr 2020 03:09:38 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42486 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728159AbgDQHJi (ORCPT ); Fri, 17 Apr 2020 03:09:38 -0400 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: , , , , , , , , , CC: Jason Yan , Hulk Robot 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 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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) { /*