Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/c19e25bf2cefecc14e0822c6a9bb3a7f546258bc.1744640331.git.lukas@wunner.de

authored by

Lukas Wunner and committed by
Bjorn Helgaas
d46b3918 2af781a9

-4
-4
drivers/pci/hotplug/pci_hotplug_core.c
··· 20 20 #include <linux/types.h> 21 21 #include <linux/kobject.h> 22 22 #include <linux/sysfs.h> 23 - #include <linux/pagemap.h> 24 23 #include <linux/init.h> 25 - #include <linux/mount.h> 26 - #include <linux/namei.h> 27 24 #include <linux/pci.h> 28 25 #include <linux/pci_hotplug.h> 29 - #include <linux/uaccess.h> 30 26 #include "../pci.h" 31 27 #include "cpci_hotplug.h" 32 28