From f510c0ba042fb21032989c8c90e96a6aa61b84bf Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 2 Sep 2022 10:06:01 +0300 Subject: [PATCH] Kernel: Remove stale includes of x86 IO header file The AHCI code doesn't rely on x86 IO at all as it only uses memory mapped IO so we can simply remove the header. We also simply don't use x86 IO in the Intel graphics driver, so we can simply remove the include of the x86 IO header there too. Everything else was a bunch of stale includes to the x86 IO header and are actually not necessary, so let's remove them to make it easier to compile non-x86 Kernel builds. --- Kernel/Bus/PCI/Controller/MemoryBackedHostBridge.cpp | 1 - Kernel/Bus/PCI/Controller/VolumeManagementDevice.cpp | 1 - Kernel/Bus/USB/USBHub.cpp | 1 - Kernel/Devices/HID/PS2KeyboardDevice.cpp | 1 - Kernel/Devices/HID/PS2MouseDevice.cpp | 1 - Kernel/Graphics/Bochs/GraphicsAdapter.cpp | 1 - Kernel/Graphics/Console/VGATextModeConsole.cpp | 1 - Kernel/Graphics/Generic/DisplayConnector.cpp | 1 - Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp | 1 - Kernel/Graphics/VMWare/GraphicsAdapter.cpp | 1 - Kernel/Storage/ATA/AHCI/InterruptHandler.h | 1 - 11 files changed, 11 deletions(-) diff --git a/Kernel/Bus/PCI/Controller/MemoryBackedHostBridge.cpp b/Kernel/Bus/PCI/Controller/MemoryBackedHostBridge.cpp index 8fd4a3c979..c121e63ed3 100644 --- a/Kernel/Bus/PCI/Controller/MemoryBackedHostBridge.cpp +++ b/Kernel/Bus/PCI/Controller/MemoryBackedHostBridge.cpp @@ -5,7 +5,6 @@ */ #include -#include #include #include diff --git a/Kernel/Bus/PCI/Controller/VolumeManagementDevice.cpp b/Kernel/Bus/PCI/Controller/VolumeManagementDevice.cpp index cc42df3148..4c8d4d7be7 100644 --- a/Kernel/Bus/PCI/Controller/VolumeManagementDevice.cpp +++ b/Kernel/Bus/PCI/Controller/VolumeManagementDevice.cpp @@ -5,7 +5,6 @@ */ #include -#include #include #include #include diff --git a/Kernel/Bus/USB/USBHub.cpp b/Kernel/Bus/USB/USBHub.cpp index c2df5b8f4c..ba3aff0237 100644 --- a/Kernel/Bus/USB/USBHub.cpp +++ b/Kernel/Bus/USB/USBHub.cpp @@ -5,7 +5,6 @@ */ #include -#include #include #include #include diff --git a/Kernel/Devices/HID/PS2KeyboardDevice.cpp b/Kernel/Devices/HID/PS2KeyboardDevice.cpp index 3cac1c7a9b..ba8a3a3b25 100644 --- a/Kernel/Devices/HID/PS2KeyboardDevice.cpp +++ b/Kernel/Devices/HID/PS2KeyboardDevice.cpp @@ -6,7 +6,6 @@ */ #include -#include #include #include #include diff --git a/Kernel/Devices/HID/PS2MouseDevice.cpp b/Kernel/Devices/HID/PS2MouseDevice.cpp index 9b06c4fbf5..86f090ffea 100644 --- a/Kernel/Devices/HID/PS2MouseDevice.cpp +++ b/Kernel/Devices/HID/PS2MouseDevice.cpp @@ -6,7 +6,6 @@ #include #include -#include #include #include #include diff --git a/Kernel/Graphics/Bochs/GraphicsAdapter.cpp b/Kernel/Graphics/Bochs/GraphicsAdapter.cpp index 0a1d161a48..1ec83a933e 100644 --- a/Kernel/Graphics/Bochs/GraphicsAdapter.cpp +++ b/Kernel/Graphics/Bochs/GraphicsAdapter.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include diff --git a/Kernel/Graphics/Console/VGATextModeConsole.cpp b/Kernel/Graphics/Console/VGATextModeConsole.cpp index f410f93ec8..c70ca7bfeb 100644 --- a/Kernel/Graphics/Console/VGATextModeConsole.cpp +++ b/Kernel/Graphics/Console/VGATextModeConsole.cpp @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include #include #include #include diff --git a/Kernel/Graphics/Generic/DisplayConnector.cpp b/Kernel/Graphics/Generic/DisplayConnector.cpp index 299aedb7db..40bbb54f21 100644 --- a/Kernel/Graphics/Generic/DisplayConnector.cpp +++ b/Kernel/Graphics/Generic/DisplayConnector.cpp @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include #include #include #include diff --git a/Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp b/Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp index eb627a1f1d..2e3ceff367 100644 --- a/Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp +++ b/Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include #include #include #include diff --git a/Kernel/Graphics/VMWare/GraphicsAdapter.cpp b/Kernel/Graphics/VMWare/GraphicsAdapter.cpp index 2bec2ac401..d13448bb0b 100644 --- a/Kernel/Graphics/VMWare/GraphicsAdapter.cpp +++ b/Kernel/Graphics/VMWare/GraphicsAdapter.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include diff --git a/Kernel/Storage/ATA/AHCI/InterruptHandler.h b/Kernel/Storage/ATA/AHCI/InterruptHandler.h index d889688732..1e425147b5 100644 --- a/Kernel/Storage/ATA/AHCI/InterruptHandler.h +++ b/Kernel/Storage/ATA/AHCI/InterruptHandler.h @@ -6,7 +6,6 @@ #pragma once -#include #include #include #include