From nobody Tue Sep 9 17:37:49 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C38C3C001DC for ; Wed, 26 Jul 2023 09:10:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233595AbjGZJKa (ORCPT ); Wed, 26 Jul 2023 05:10:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233185AbjGZJJx (ORCPT ); Wed, 26 Jul 2023 05:09:53 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 368E02688 for ; Wed, 26 Jul 2023 02:06:15 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R9nzg3fdgzrRwf; Wed, 26 Jul 2023 17:05:19 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 26 Jul 2023 17:06:12 +0800 From: Li Zetao To: , , CC: , , , , , , , , Subject: [PATCH -next] x86/sev: Mark boot_ghcb_page and boot_ghcb static Date: Wed, 26 Jul 2023 17:06:59 +0000 Message-ID: <20230726170659.2474934-1-lizetao1@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.90.53.73] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This patch fixes the following sprse warning: arch/x86/boot/compressed/sev.c:28:13: warning: symbol boot_ghcb_page was not declared. Should it be static? arch/x86/boot/compressed/sev.c:29:13: warning: symbol boot_ghcb was not declared. Should it be static? No functional change intended. Signed-off-by: Li Zetao Reviewed-by: Nikunj A Dadhania Reviewed-by: Tom Lendacky --- arch/x86/boot/compressed/sev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/compressed/sev.c b/arch/x86/boot/compressed/sev.c index 09dc8c187b3c..323f6298a6b2 100644 --- a/arch/x86/boot/compressed/sev.c +++ b/arch/x86/boot/compressed/sev.c @@ -25,8 +25,8 @@ #include "error.h" #include "../msr.h" =20 -struct ghcb boot_ghcb_page __aligned(PAGE_SIZE); -struct ghcb *boot_ghcb; +static struct ghcb boot_ghcb_page __aligned(PAGE_SIZE); +static struct ghcb *boot_ghcb; =20 /* * Copy a version of this function here - insn-eval.c can't be used in --=20 2.34.1