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

PCI: hotplug: Clean up include files

arch/powerpc/include/asm/prom.h includes some headers that it doesn't need
itself. Add the missing headers to files that include prom.h so we can
remove them from prom.h.

Link: https://lore.kernel.org/r/79201f5fae8d003164ac36ed3be7789db1bc5ab4.1648833421.git.christophe.leroy@csgroup.eu
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Christophe Leroy and committed by
Bjorn Helgaas
b2851926 dff61390

+6
+1
drivers/pci/hotplug/pnv_php.c
··· 9 9 #include <linux/module.h> 10 10 #include <linux/pci.h> 11 11 #include <linux/pci_hotplug.h> 12 + #include <linux/of_fdt.h> 12 13 13 14 #include <asm/opal.h> 14 15 #include <asm/pnv-pci.h>
+1
drivers/pci/hotplug/rpadlpar_core.c
··· 15 15 16 16 #include <linux/init.h> 17 17 #include <linux/module.h> 18 + #include <linux/of.h> 18 19 #include <linux/pci.h> 19 20 #include <linux/string.h> 20 21 #include <linux/vmalloc.h>
+2
drivers/pci/hotplug/rpaphp_core.c
··· 11 11 #include <linux/kernel.h> 12 12 #include <linux/module.h> 13 13 #include <linux/moduleparam.h> 14 + #include <linux/of.h> 14 15 #include <linux/pci.h> 15 16 #include <linux/pci_hotplug.h> 16 17 #include <linux/smp.h> ··· 21 20 #include <asm/eeh.h> /* for eeh_add_device() */ 22 21 #include <asm/rtas.h> /* rtas_call */ 23 22 #include <asm/pci-bridge.h> /* for pci_controller */ 23 + #include <asm/prom.h> 24 24 #include "../pci.h" /* for pci_add_new_bus */ 25 25 /* and pci_do_scan_bus */ 26 26 #include "rpaphp.h"
+1
drivers/pci/hotplug/rpaphp_pci.c
··· 8 8 * Send feedback to <lxie@us.ibm.com> 9 9 * 10 10 */ 11 + #include <linux/of.h> 11 12 #include <linux/pci.h> 12 13 #include <linux/string.h> 13 14
+1
drivers/pci/hotplug/rpaphp_slot.c
··· 11 11 #include <linux/kernel.h> 12 12 #include <linux/module.h> 13 13 #include <linux/sysfs.h> 14 + #include <linux/of.h> 14 15 #include <linux/pci.h> 15 16 #include <linux/string.h> 16 17 #include <linux/slab.h>