Message ID | 20211206210224.539281124@linutronix.de (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | genirq/msi, PCI/MSI: Spring cleaning - Part 1 | expand |
On Mon, Dec 06, 2021 at 11:27:44PM +0100, Thomas Gleixner wrote: > Get rid of the pile of unneeded includes which accumulated over time. > > Signed-off-by: Thomas Gleixner <tglx@linutronix.de> > Tested-by: Juergen Gross <jgross@suse.com> > Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Nice, thanks! > --- > V2: Address build fail on powerpc - Cedric > --- > drivers/pci/msi.c | 16 ++++------------ > 1 file changed, 4 insertions(+), 12 deletions(-) > > --- a/drivers/pci/msi.c > +++ b/drivers/pci/msi.c > @@ -7,22 +7,14 @@ > * Copyright (C) 2016 Christoph Hellwig. > */ > > +#include <linux/acpi_iort.h> > #include <linux/err.h> > -#include <linux/mm.h> > -#include <linux/irq.h> > -#include <linux/interrupt.h> > #include <linux/export.h> > -#include <linux/ioport.h> > -#include <linux/pci.h> > -#include <linux/proc_fs.h> > -#include <linux/msi.h> > -#include <linux/smp.h> > -#include <linux/errno.h> > -#include <linux/io.h> > -#include <linux/acpi_iort.h> > -#include <linux/slab.h> > +#include <linux/irq.h> > #include <linux/irqdomain.h> > +#include <linux/msi.h> > #include <linux/of_irq.h> > +#include <linux/pci.h> > > #include "pci.h" > >
--- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -7,22 +7,14 @@ * Copyright (C) 2016 Christoph Hellwig. */ +#include <linux/acpi_iort.h> #include <linux/err.h> -#include <linux/mm.h> -#include <linux/irq.h> -#include <linux/interrupt.h> #include <linux/export.h> -#include <linux/ioport.h> -#include <linux/pci.h> -#include <linux/proc_fs.h> -#include <linux/msi.h> -#include <linux/smp.h> -#include <linux/errno.h> -#include <linux/io.h> -#include <linux/acpi_iort.h> -#include <linux/slab.h> +#include <linux/irq.h> #include <linux/irqdomain.h> +#include <linux/msi.h> #include <linux/of_irq.h> +#include <linux/pci.h> #include "pci.h"