From 2a78bf85968ebff58b4d23be43fecdbe6178adb2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 28 Jun 2021 20:59:35 +0200 Subject: Kernel: Fix the return type for syscalls The Process::Handler type has KResultOr as its return type. Using a different return type with an equally-sized template parameter sort of works but breaks once that condition is no longer true, e.g. for KResultOr on x86_64. Ideally the syscall handlers would also take FlatPtrs as their args so we can get rid of the reinterpret_cast for the function pointer but I didn't quite feel like cleaning that up as well. --- Kernel/Syscalls/chroot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Syscalls/chroot.cpp') diff --git a/Kernel/Syscalls/chroot.cpp b/Kernel/Syscalls/chroot.cpp index 3313e86020..cade89cee3 100644 --- a/Kernel/Syscalls/chroot.cpp +++ b/Kernel/Syscalls/chroot.cpp @@ -11,7 +11,7 @@ namespace Kernel { -KResultOr Process::sys$chroot(Userspace user_path, size_t path_length, int mount_flags) +KResultOr Process::sys$chroot(Userspace user_path, size_t path_length, int mount_flags) { if (!is_superuser()) return EPERM; -- cgit v1.2.3