From patchwork Wed Mar 3 09:36:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Qiang Ma X-Patchwork-Id: 12113185 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41288C433DB for ; Wed, 3 Mar 2021 09:42:27 +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 8BF2C64EEC for ; Wed, 3 Mar 2021 09:42:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8BF2C64EEC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=uniontech.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.92779.174854 (Exim 4.92) (envelope-from ) id 1lHO1C-00084B-CO; Wed, 03 Mar 2021 09:42:10 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 92779.174854; Wed, 03 Mar 2021 09:42:10 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lHO1C-000844-9R; Wed, 03 Mar 2021 09:42:10 +0000 Received: by outflank-mailman (input) for mailman id 92779; Wed, 03 Mar 2021 09:37:39 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lHNwp-00079k-Fu for xen-devel@lists.xenproject.org; Wed, 03 Mar 2021 09:37:39 +0000 Received: from regular1.263xmail.com (unknown [211.150.70.199]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 66fa1b46-4540-4129-b0ea-d0bbcdc0e417; Wed, 03 Mar 2021 09:37:35 +0000 (UTC) Received: from localhost (unknown [192.168.167.16]) by regular1.263xmail.com (Postfix) with ESMTP id 13F5512AE; Wed, 3 Mar 2021 17:37:33 +0800 (CST) Received: from localhost.localdomain (unknown [124.126.19.250]) by smtp.263.net (postfix) whith ESMTP id P32470T140679588607744S1614764247776371_; Wed, 03 Mar 2021 17:37:33 +0800 (CST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 66fa1b46-4540-4129-b0ea-d0bbcdc0e417 X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: maqianga@uniontech.com X-SENDER: maqianga@uniontech.com X-LOGIN-NAME: maqianga@uniontech.com X-FST-TO: boris.ostrovsky@oracle.com X-SENDER-IP: 124.126.19.250 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: maqiang To: boris.ostrovsky@oracle.com, jgross@suse.com, sstabellini@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, maqiang Subject: [PATCH] efi: x86/xen: fix -Wmissing-prototypes warning Date: Wed, 3 Mar 2021 17:36:51 +0800 Message-Id: <20210303093651.6801-1-maqianga@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 We get 1 warning when building kernel with W=1: arch/x86/xen/efi.c:130:13: warning: no previous prototype for ‘xen_efi_init’ [-Wmissing-prototypes] void __init xen_efi_init(struct boot_params *boot_params) In fact, this function is declared as a static inline function in header file, but is not decorated as a static inline function in source file. So this patch marks this function with 'static inline'. Signed-off-by: maqiang --- arch/x86/xen/efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/efi.c b/arch/x86/xen/efi.c index 7d7ffb9c826a..cf2e9ff3866d 100644 --- a/arch/x86/xen/efi.c +++ b/arch/x86/xen/efi.c @@ -127,7 +127,7 @@ static enum efi_secureboot_mode xen_efi_get_secureboot(void) return efi_secureboot_mode_enabled; } -void __init xen_efi_init(struct boot_params *boot_params) +static inline void __init xen_efi_init(struct boot_params *boot_params) { efi_system_table_t *efi_systab_xen;