diff options
author | dzwdz | 2021-11-14 17:46:20 +0100 |
---|---|---|
committer | dzwdz | 2021-11-14 17:46:20 +0100 |
commit | 7acf810e81491b08410df1b7bb886bd11b44cd98 (patch) | |
tree | d05378fea8e7e11a6db90369c165988752a18557 /src/kernel/vfs | |
parent | 714b3dce9016f699f8842d792075555077fd4d31 (diff) |
shared: use a single implementation of mem* functions everywhere
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r-- | src/kernel/vfs/mount.c | 2 | ||||
-rw-r--r-- | src/kernel/vfs/path.c | 1 | ||||
-rw-r--r-- | src/kernel/vfs/root.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/vfs/mount.c b/src/kernel/vfs/mount.c index b6b3e8d..c962ba5 100644 --- a/src/kernel/vfs/mount.c +++ b/src/kernel/vfs/mount.c @@ -1,6 +1,6 @@ #include <kernel/mem/alloc.h> -#include <kernel/util.h> #include <kernel/vfs/mount.h> +#include <shared/mem.h> struct vfs_mount *vfs_mount_seed(void) { struct vfs_mount *mount = kmalloc(sizeof *mount); diff --git a/src/kernel/vfs/path.c b/src/kernel/vfs/path.c index 096d3fe..df5f00f 100644 --- a/src/kernel/vfs/path.c +++ b/src/kernel/vfs/path.c @@ -1,5 +1,6 @@ #include <kernel/vfs/path.h> #include <kernel/panic.h> +#include <shared/mem.h> int path_simplify(const char *in, char *out, size_t len) { if (len == 0) return -1; // empty paths are invalid diff --git a/src/kernel/vfs/root.c b/src/kernel/vfs/root.c index 834bed7..adf1bfe 100644 --- a/src/kernel/vfs/root.c +++ b/src/kernel/vfs/root.c @@ -1,8 +1,8 @@ #include <kernel/mem/virt.h> #include <kernel/panic.h> #include <kernel/proc.h> -#include <kernel/util.h> #include <kernel/vfs/root.h> +#include <shared/mem.h> enum { HANDLE_ROOT, |