linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cxl: drop unused header asm/pnv-pci.h
@ 2017-01-19 10:50 Greg Kurz
  2017-01-19 12:24 ` Andrew Donnellan
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Greg Kurz @ 2017-01-19 10:50 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Michael Ellerman, linux-kernel, Frederic Barrat, Ian Munsie

The kernel API does not use anything from this header file.

Signed-off-by: Greg Kurz <groug@kaod.org>
---
 drivers/misc/cxl/api.c |    1 -
 1 file changed, 1 deletion(-)

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>

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] cxl: drop unused header asm/pnv-pci.h
  2017-01-19 10:50 [PATCH] cxl: drop unused header asm/pnv-pci.h Greg Kurz
@ 2017-01-19 12:24 ` Andrew Donnellan
  2017-01-21 18:39 ` Frederic Barrat
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Andrew Donnellan @ 2017-01-19 12:24 UTC (permalink / raw)
  To: Greg Kurz, linuxppc-dev; +Cc: linux-kernel, Frederic Barrat, Ian Munsie

On 19/01/17 21:50, Greg Kurz wrote:
> The kernel API does not use anything from this header file.
>
> Signed-off-by: Greg Kurz <groug@kaod.org>

Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>


-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan@au1.ibm.com  IBM Australia Limited

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] cxl: drop unused header asm/pnv-pci.h
  2017-01-19 10:50 [PATCH] cxl: drop unused header asm/pnv-pci.h Greg Kurz
  2017-01-19 12:24 ` Andrew Donnellan
@ 2017-01-21 18:39 ` Frederic Barrat
  2017-01-24  9:57 ` Michael Ellerman
  2017-01-27  0:40 ` Michael Ellerman
  3 siblings, 0 replies; 7+ messages in thread
From: Frederic Barrat @ 2017-01-21 18:39 UTC (permalink / raw)
  To: Greg Kurz, linuxppc-dev; +Cc: Michael Ellerman, linux-kernel, Ian Munsie



Le 19/01/2017 à 04:50, Greg Kurz a écrit :
> The kernel API does not use anything from this header file.
>
> Signed-off-by: Greg Kurz <groug@kaod.org>
> ---

Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] cxl: drop unused header asm/pnv-pci.h
  2017-01-19 10:50 [PATCH] cxl: drop unused header asm/pnv-pci.h Greg Kurz
  2017-01-19 12:24 ` Andrew Donnellan
  2017-01-21 18:39 ` Frederic Barrat
@ 2017-01-24  9:57 ` Michael Ellerman
  2017-01-24 11:48   ` Greg Kurz
  2017-01-24 23:22   ` Andrew Donnellan
  2017-01-27  0:40 ` Michael Ellerman
  3 siblings, 2 replies; 7+ messages in thread
From: Michael Ellerman @ 2017-01-24  9:57 UTC (permalink / raw)
  To: Greg Kurz, linuxppc-dev; +Cc: linux-kernel, Frederic Barrat, Ian Munsie

Greg Kurz <groug@kaod.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 :)

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>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] cxl: drop unused header asm/pnv-pci.h
  2017-01-24  9:57 ` Michael Ellerman
@ 2017-01-24 11:48   ` Greg Kurz
  2017-01-24 23:22   ` Andrew Donnellan
  1 sibling, 0 replies; 7+ messages in thread
From: Greg Kurz @ 2017-01-24 11:48 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, linux-kernel, Frederic Barrat, Ian Munsie

On Tue, 24 Jan 2017 20:57:06 +1100
Michael Ellerman <mpe@ellerman.id.au> wrote:

> Greg Kurz <groug@kaod.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>  

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] cxl: drop unused header asm/pnv-pci.h
  2017-01-24  9:57 ` Michael Ellerman
  2017-01-24 11:48   ` Greg Kurz
@ 2017-01-24 23:22   ` Andrew Donnellan
  1 sibling, 0 replies; 7+ messages in thread
From: Andrew Donnellan @ 2017-01-24 23:22 UTC (permalink / raw)
  To: Michael Ellerman, Greg Kurz, linuxppc-dev
  Cc: linux-kernel, Frederic Barrat, Ian Munsie

On 24/01/17 20:57, Michael Ellerman wrote:
> Greg Kurz <groug@kaod.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 :)

I did compile test it before giving my Reviewed-by.

-- 
Andrew Donnellan              OzLabs, ADL Canberra
andrew.donnellan@au1.ibm.com  IBM Australia Limited

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cxl: drop unused header asm/pnv-pci.h
  2017-01-19 10:50 [PATCH] cxl: drop unused header asm/pnv-pci.h Greg Kurz
                   ` (2 preceding siblings ...)
  2017-01-24  9:57 ` Michael Ellerman
@ 2017-01-27  0:40 ` Michael Ellerman
  3 siblings, 0 replies; 7+ messages in thread
From: Michael Ellerman @ 2017-01-27  0:40 UTC (permalink / raw)
  To: Greg Kurz, linuxppc-dev; +Cc: linux-kernel, Frederic Barrat, Ian Munsie

On Thu, 2017-01-19 at 10:50:10 UTC, Greg Kurz wrote:
> The kernel API does not use anything from this header file.
> 
> Signed-off-by: Greg Kurz <groug@kaod.org>
> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
> Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/0e17166d377e74164e4067ae162ed1

cheers

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-01-27  0:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19 10:50 [PATCH] cxl: drop unused header asm/pnv-pci.h Greg Kurz
2017-01-19 12:24 ` Andrew Donnellan
2017-01-21 18:39 ` Frederic Barrat
2017-01-24  9:57 ` Michael Ellerman
2017-01-24 11:48   ` Greg Kurz
2017-01-24 23:22   ` Andrew Donnellan
2017-01-27  0:40 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).