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.
This commit is contained in:
Augustin Cavalier
2026-06-04 11:13:53 -04:00
parent dd14b451e9
commit 9b6a529847
+2 -4
View File
@@ -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 */