From c3c7a44261b9bf5f02f9275d8b40bde166498803 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 9 Mar 2022 18:08:42 -0500 Subject: [PATCH] kernel/slab: Make block_alloc and block_free static. They are not used outside this file. --- src/system/kernel/slab/allocator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/slab/allocator.cpp b/src/system/kernel/slab/allocator.cpp index d4126a1430..f9f1456076 100644 --- a/src/system/kernel/slab/allocator.cpp +++ b/src/system/kernel/slab/allocator.cpp @@ -70,7 +70,7 @@ size_to_index(size_t size) } -void* +static void* block_alloc(size_t size, size_t alignment, uint32 flags) { if (alignment > kMinObjectAlignment) { @@ -143,7 +143,7 @@ block_alloc_early(size_t size) } -void +static void block_free(void* block, uint32 flags) { if (block == NULL)