Skip to content

Commit b9df8de

Browse files
supercomputer7gmta
authored andcommitted
Kernel/USB: Don't include UHCIController.h in USBPipe.h
The USB::Pipe is abstracted from the actual USB host controller implementation, so don't include the UHCIController.h file. Also, we missed an include to UserOrKernelBuffer.h, so this is added to ensure the code can still compile.
1 parent 7bea2b6 commit b9df8de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Kernel/Bus/USB/USBPipe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include <AK/StdLibExtras.h>
99
#include <Kernel/Bus/USB/PacketTypes.h>
10-
#include <Kernel/Bus/USB/UHCI/UHCIController.h>
10+
#include <Kernel/Bus/USB/USBController.h>
1111
#include <Kernel/Bus/USB/USBPipe.h>
1212
#include <Kernel/Bus/USB/USBTransfer.h>
1313

Kernel/Bus/USB/USBPipe.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <AK/OwnPtr.h>
1111
#include <AK/Types.h>
1212
#include <Kernel/Bus/USB/USBDescriptors.h>
13+
#include <Kernel/Library/UserOrKernelBuffer.h>
1314
#include <Kernel/Locking/Mutex.h>
1415
#include <Kernel/Memory/Region.h>
1516

0 commit comments

Comments
 (0)