From 9773714e5c91bd034aa165771eec639b6ad4b141 Mon Sep 17 00:00:00 2001 From: Peter Fang Date: Thu, 12 Dec 2024 18:10:26 -0800 Subject: [PATCH] svsm: Make functions private Some functions have no need to be exposed externally so turn them private. Signed-off-by: Peter Fang --- kernel/src/svsm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/svsm.rs b/kernel/src/svsm.rs index 83af4608e..0523b53d9 100755 --- a/kernel/src/svsm.rs +++ b/kernel/src/svsm.rs @@ -93,7 +93,7 @@ global_asm!( static CPUID_PAGE: ImmutAfterInitCell = ImmutAfterInitCell::uninit(); static LAUNCH_INFO: ImmutAfterInitCell = ImmutAfterInitCell::uninit(); -pub fn memory_init(launch_info: &KernelLaunchInfo) { +fn memory_init(launch_info: &KernelLaunchInfo) { root_mem_init( PhysAddr::from(launch_info.heap_area_phys_start), VirtAddr::from(launch_info.heap_area_virt_start), @@ -101,7 +101,7 @@ pub fn memory_init(launch_info: &KernelLaunchInfo) { ); } -pub fn boot_stack_info() { +fn boot_stack_info() { // SAFETY: this is only unsafe because `bsp_stack_end` is an extern // static, but we're simply printing its address. We are not creating a // reference so this is safe.