lkml.org 
[lkml]   [2023]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] x86/sev: Mark boot_ghcb_page and boot_ghcb static
Date
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 <lizetao1@huawei.com>
---
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"

-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;

/*
* Copy a version of this function here - insn-eval.c can't be used in
--
2.34.1
\
 
 \ /
  Last update: 2023-07-26 11:10    [W:0.027 / U:1.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site