[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170124124805.6b8e798f@bahia.lan>
Date: Tue, 24 Jan 2017 12:48:05 +0100
From: Greg Kurz <groug@...d.org>
To: Michael Ellerman <mpe@...erman.id.au>
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Frederic Barrat <fbarrat@...ux.vnet.ibm.com>,
Ian Munsie <imunsie@....ibm.com>
Subject: Re: [PATCH] cxl: drop unused header asm/pnv-pci.h
On Tue, 24 Jan 2017 20:57:06 +1100
Michael Ellerman <mpe@...erman.id.au> wrote:
> Greg Kurz <groug@...d.org> writes:
>
> > The kernel API does not use anything from this header file.
>
> That's actually hard to prove in general, because pnv-pci.h includes
> linux/pci.h, linux/pci_hotplug.h, linux/irq.h, misc/cxl-base.h and
> asm/opal-api.h. At least four of which aren't included directly by
> api.c.
>
> But I'll take you word for it :)
>
Sorry for the lack of details...
api.c doesn't do anything related to pci hotplug, nor to OPAL. This
happens in pci.c.
It includes cxl.h which includes misc/cxl-base.h.
The only generic irq bits are irq_hw_number_t, provided by linux/types.h,
and irq_find_mapping(), provided by linux/irqdomain.h, which is included
by misc/cxl-base.h -> linux/interrupt.h -> asm/irq.h.
Cheers (and congrats :)
--
Greg
> cheers
>
> > diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c
> > index 1b35e33d2434..bcc030eacab7 100644
> > --- a/drivers/misc/cxl/api.c
> > +++ b/drivers/misc/cxl/api.c
> > @@ -11,7 +11,6 @@
> > #include <linux/slab.h>
> > #include <linux/file.h>
> > #include <misc/cxl.h>
> > -#include <asm/pnv-pci.h>
> > #include <linux/msi.h>
> > #include <linux/module.h>
> > #include <linux/mount.h>
Powered by blists - more mailing lists