summaryrefslogtreecommitdiff
path: root/src/kernel/mem
diff options
context:
space:
mode:
authordzwdz2021-09-12 16:30:04 +0200
committerdzwdz2021-09-12 16:30:04 +0200
commite5499c8dcbb29c405e551d39856b48b6aa3e91af (patch)
tree966b6e48bcf39f833edae2daadc1211a534aba99 /src/kernel/mem
parente4e4007fbbeede6f9a59dab6327f0ef3a4675801 (diff)
make the inline functions static
otherwise this doesn't compile with -O0
Diffstat (limited to 'src/kernel/mem')
-rw-r--r--src/kernel/mem/virt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/mem/virt.h b/src/kernel/mem/virt.h
index 78d0cb3..54454e9 100644
--- a/src/kernel/mem/virt.h
+++ b/src/kernel/mem/virt.h
@@ -29,12 +29,12 @@ bool virt_cpy(
struct pagedir *src_pages, const void __user *src, size_t length);
-inline bool virt_cpy_to(struct pagedir *dest_pages, // physical -> virtual
+static inline bool virt_cpy_to(struct pagedir *dest_pages, // physical -> virtual
void __user *dest, const void *src, size_t length) {
return virt_cpy(dest_pages, dest, NULL, (userptr_t)src, length);
}
-inline bool virt_cpy_from(struct pagedir *src_pages, // virtual -> physical
+static inline bool virt_cpy_from(struct pagedir *src_pages, // virtual -> physical
void *dest, const void __user *src, size_t length) {
return virt_cpy(NULL, (userptr_t)dest, src_pages, src, length);
}