Change visibility of alloc share/unshare functions to pub(crate)
This cl modifies the visibility of several alloc share/unshare
functions from pub to pub(crate). This is because these functions
are only used within the crate and do not need to be accessed
outside of it.
Test: m pvmfw_img
Test: atest rialto_test
Bug: 274441673
Change-Id: Ie0165d23d7d5b0a3885965d9574b6715dd32fc8c
diff --git a/vmbase/src/memory/mod.rs b/vmbase/src/memory/mod.rs
index 898aa10..2f72fc4 100644
--- a/vmbase/src/memory/mod.rs
+++ b/vmbase/src/memory/mod.rs
@@ -23,10 +23,12 @@
pub use error::MemoryTrackerError;
pub use page_table::PageTable;
pub use shared::{
- alloc_shared, dealloc_shared, handle_permission_fault, handle_translation_fault, MemoryRange,
- MemoryTracker, MEMORY,
+ handle_permission_fault, handle_translation_fault, MemoryRange, MemoryTracker, MEMORY,
};
pub use util::{
- flush, flushed_zeroize, min_dcache_line_size, page_4kb_of, phys_to_virt, virt_to_phys,
- PAGE_SIZE, SIZE_128KB, SIZE_2MB, SIZE_4KB, SIZE_4MB, SIZE_64KB,
+ flush, flushed_zeroize, min_dcache_line_size, page_4kb_of, PAGE_SIZE, SIZE_128KB, SIZE_2MB,
+ SIZE_4KB, SIZE_4MB, SIZE_64KB,
};
+
+pub(crate) use shared::{alloc_shared, dealloc_shared};
+pub(crate) use util::{phys_to_virt, virt_to_phys};