Skip to content

Commit d46b391

Browse files
l1kbjorn-helgaas
authored andcommitted
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 <linux/pagemap.h> directive. It removed all invocations of kern_mount(), mntget() and mntput() without also removing the #include <linux/mount.h> directive. It removed all invocations of lookup_hash() without also removing the #include <linux/namei.h> directive. It removed all invocations of copy_to_user() and copy_from_user() without also removing the #include <linux/uaccess.h> directive. These #include directives are still unnecessary today, so drop them. Signed-off-by: Lukas Wunner <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Link: https://patch.msgid.link/c19e25bf2cefecc14e0822c6a9bb3a7f546258bc.1744640331.git.lukas@wunner.de
1 parent 2af781a commit d46b391

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/pci/hotplug/pci_hotplug_core.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,9 @@
2020
#include <linux/types.h>
2121
#include <linux/kobject.h>
2222
#include <linux/sysfs.h>
23-
#include <linux/pagemap.h>
2423
#include <linux/init.h>
25-
#include <linux/mount.h>
26-
#include <linux/namei.h>
2724
#include <linux/pci.h>
2825
#include <linux/pci_hotplug.h>
29-
#include <linux/uaccess.h>
3026
#include "../pci.h"
3127
#include "cpci_hotplug.h"
3228

0 commit comments

Comments
 (0)