From 9b6a529847874e4dca7c0f3de1c94faa66873d0d Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 4 Jun 2026 11:13:53 -0400 Subject: [PATCH] kernel/vm: Make VM internal methods C++-only. They shouldn't be needed from C. Also add a declaration for VMAddressSpace. This should fix the RISC-V build. --- headers/private/kernel/vm/vm_priv.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/headers/private/kernel/vm/vm_priv.h b/headers/private/kernel/vm/vm_priv.h index f48738d5bd..fedd932dec 100644 --- a/headers/private/kernel/vm/vm_priv.h +++ b/headers/private/kernel/vm/vm_priv.h @@ -23,8 +23,8 @@ #ifdef __cplusplus -extern "C" { -#endif + +class VMAddressSpace; // should only be used by VM internals @@ -57,8 +57,6 @@ bool vm_page_should_do_active_paging(); const char *page_state_to_string(int state); // for debugging purposes only -#ifdef __cplusplus -} #endif #endif /* _KERNEL_VM_VM_PRIV_H */