summaryrefslogtreecommitdiff
path: root/Kernel/Bus
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2021-09-04 21:04:10 +0000
committerAndreas Kling <kling@serenityos.org>2021-09-05 12:54:48 +0200
commit566c5d1e99b096f83b39bc37be57db0c6a4fe195 (patch)
tree379529cf9cd19972c1ecc34d26e539caade1234e /Kernel/Bus
parentd8de352eadce62789a00f8d6da6c2e77903e9180 (diff)
downloadserenity-566c5d1e99b096f83b39bc37be57db0c6a4fe195.zip
AK+Kernel: Move KResult.h to Kernel/API for userspace access
This commit moves the KResult and KResultOr objects to Kernel/API to signify that they may now be freely used by userspace code at points where a syscall-related error result is to be expected. It also exposes KResult and KResultOr to the global namespace to make it nicer to use for userspace code.
Diffstat (limited to 'Kernel/Bus')
-rw-r--r--Kernel/Bus/USB/UHCI/UHCIRootHub.h2
-rw-r--r--Kernel/Bus/USB/USBController.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Bus/USB/UHCI/UHCIRootHub.h b/Kernel/Bus/USB/UHCI/UHCIRootHub.h
index 964b4be736..1597287235 100644
--- a/Kernel/Bus/USB/UHCI/UHCIRootHub.h
+++ b/Kernel/Bus/USB/UHCI/UHCIRootHub.h
@@ -8,9 +8,9 @@
#include <AK/NonnullOwnPtr.h>
#include <AK/NonnullRefPtr.h>
+#include <Kernel/API/KResult.h>
#include <Kernel/Bus/USB/USBHub.h>
#include <Kernel/Bus/USB/USBTransfer.h>
-#include <Kernel/KResult.h>
namespace Kernel::USB {
diff --git a/Kernel/Bus/USB/USBController.h b/Kernel/Bus/USB/USBController.h
index 902387a69f..3a97e34ab0 100644
--- a/Kernel/Bus/USB/USBController.h
+++ b/Kernel/Bus/USB/USBController.h
@@ -7,9 +7,9 @@
#pragma once
#include <AK/RefCounted.h>
+#include <Kernel/API/KResult.h>
#include <Kernel/Bus/USB/USBDevice.h>
#include <Kernel/Bus/USB/USBTransfer.h>
-#include <Kernel/KResult.h>
namespace Kernel::USB {