From: Lukas Wunner Date: Mon, 14 Apr 2025 14:25:21 +0000 (+0200) Subject: PCI: hotplug: Drop superfluous #include directives X-Git-Tag: v6.16-rc1~50^2~22^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d46b3918fac499f60b7df1cb1437af7344480576;p=thirdparty%2Fkernel%2Flinux.git PCI: hotplug: Drop superfluous #include directives In February 2003, historic commit https://git.kernel.org/tglx/history/c/280c1c9a0ea4 ("[PATCH] PCI Hotplug: Replace pcihpfs with sysfs.") removed all invocations of __get_free_page() and free_page() from the PCI hotplug core without also removing the #include directive. It removed all invocations of kern_mount(), mntget() and mntput() without also removing the #include directive. It removed all invocations of lookup_hash() without also removing the #include directive. It removed all invocations of copy_to_user() and copy_from_user() without also removing the #include directive. These #include directives are still unnecessary today, so drop them. Signed-off-by: Lukas Wunner Signed-off-by: Bjorn Helgaas Link: https://patch.msgid.link/c19e25bf2cefecc14e0822c6a9bb3a7f546258bc.1744640331.git.lukas@wunner.de --- diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c index d7fc3bc039643..fadcf98a8a660 100644 --- a/drivers/pci/hotplug/pci_hotplug_core.c +++ b/drivers/pci/hotplug/pci_hotplug_core.c @@ -20,13 +20,9 @@ #include #include #include -#include #include -#include -#include #include #include -#include #include "../pci.h" #include "cpci_hotplug.h"