linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES
@ 2020-01-30  6:31 Oliver O'Halloran
  2020-01-30  6:31 ` [PATCH 2/2] pseries/makefile: Remove CONFIG_PPC_PSERIES check Oliver O'Halloran
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Oliver O'Halloran @ 2020-01-30  6:31 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Oliver O'Halloran

vio.c requires CONFIG_IBMVIO which in turn depends on PPC_PSERIES.
In other words, this ifdef is pointless. At a guess it's a carry-over
from pre-history.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
---
 arch/powerpc/platforms/pseries/vio.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/vio.c b/arch/powerpc/platforms/pseries/vio.c
index f682b7b..37f1f25 100644
--- a/arch/powerpc/platforms/pseries/vio.c
+++ b/arch/powerpc/platforms/pseries/vio.c
@@ -1628,7 +1628,6 @@ const void *vio_get_attribute(struct vio_dev *vdev, char *which, int *length)
 }
 EXPORT_SYMBOL(vio_get_attribute);
 
-#ifdef CONFIG_PPC_PSERIES
 /* vio_find_name() - internal because only vio.c knows how we formatted the
  * kobject name
  */
@@ -1698,7 +1697,6 @@ int vio_disable_interrupts(struct vio_dev *dev)
 	return rc;
 }
 EXPORT_SYMBOL(vio_disable_interrupts);
-#endif /* CONFIG_PPC_PSERIES */
 
 static int __init vio_init(void)
 {
-- 
2.9.5


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

* [PATCH 2/2] pseries/makefile: Remove CONFIG_PPC_PSERIES check
  2020-01-30  6:31 [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES Oliver O'Halloran
@ 2020-01-30  6:31 ` Oliver O'Halloran
  2020-01-30  6:44   ` Oliver O'Halloran
  2020-01-31  0:39   ` Tyrel Datwyler
  2020-01-31  0:37 ` [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES Tyrel Datwyler
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 7+ messages in thread
From: Oliver O'Halloran @ 2020-01-30  6:31 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Oliver O'Halloran

The platform makefile (arch/powerpc/platforms/pseries/Makefile) is only
included by the platform makefile (arch/powerpc/platform/Makefile) when
CONFIG_PPC_PSERIES is selected, so checking for CONFIG_PPC_PSERIES in the
pseries makefile is pointless.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
---
 arch/powerpc/platforms/pseries/Makefile | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/Makefile b/arch/powerpc/platforms/pseries/Makefile
index a3c74a5..c8a2b0b 100644
--- a/arch/powerpc/platforms/pseries/Makefile
+++ b/arch/powerpc/platforms/pseries/Makefile
@@ -29,6 +29,4 @@ obj-$(CONFIG_PPC_SPLPAR)	+= vphn.o
 obj-$(CONFIG_PPC_SVM)		+= svm.o
 obj-$(CONFIG_FA_DUMP)		+= rtas-fadump.o
 
-ifdef CONFIG_PPC_PSERIES
 obj-$(CONFIG_SUSPEND)		+= suspend.o
-endif
-- 
2.9.5


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

* Re: [PATCH 2/2] pseries/makefile: Remove CONFIG_PPC_PSERIES check
  2020-01-30  6:31 ` [PATCH 2/2] pseries/makefile: Remove CONFIG_PPC_PSERIES check Oliver O'Halloran
@ 2020-01-30  6:44   ` Oliver O'Halloran
  2020-01-31  0:39   ` Tyrel Datwyler
  1 sibling, 0 replies; 7+ messages in thread
From: Oliver O'Halloran @ 2020-01-30  6:44 UTC (permalink / raw)
  To: linuxppc-dev

On Thu, Jan 30, 2020 at 5:32 PM Oliver O'Halloran <oohall@gmail.com> wrote:
>
> The platform makefile (arch/powerpc/platforms/pseries/Makefile) is only

doh

s/platform/pseries/

> included by the platform makefile (arch/powerpc/platform/Makefile) when
> CONFIG_PPC_PSERIES is selected, so checking for CONFIG_PPC_PSERIES in the
> pseries makefile is pointless.
>
> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
> ---
>  arch/powerpc/platforms/pseries/Makefile | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/arch/powerpc/platforms/pseries/Makefile b/arch/powerpc/platforms/pseries/Makefile
> index a3c74a5..c8a2b0b 100644
> --- a/arch/powerpc/platforms/pseries/Makefile
> +++ b/arch/powerpc/platforms/pseries/Makefile
> @@ -29,6 +29,4 @@ obj-$(CONFIG_PPC_SPLPAR)      += vphn.o
>  obj-$(CONFIG_PPC_SVM)          += svm.o
>  obj-$(CONFIG_FA_DUMP)          += rtas-fadump.o
>
> -ifdef CONFIG_PPC_PSERIES
>  obj-$(CONFIG_SUSPEND)          += suspend.o
> -endif
> --
> 2.9.5
>

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

* Re: [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES
  2020-01-30  6:31 [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES Oliver O'Halloran
  2020-01-30  6:31 ` [PATCH 2/2] pseries/makefile: Remove CONFIG_PPC_PSERIES check Oliver O'Halloran
@ 2020-01-31  0:37 ` Tyrel Datwyler
  2020-01-31 10:38 ` Michael Ellerman
  2020-03-06  0:27 ` Michael Ellerman
  3 siblings, 0 replies; 7+ messages in thread
From: Tyrel Datwyler @ 2020-01-31  0:37 UTC (permalink / raw)
  To: Oliver O'Halloran, linuxppc-dev

On 1/29/20 10:31 PM, Oliver O'Halloran wrote:
> vio.c requires CONFIG_IBMVIO which in turn depends on PPC_PSERIES.
> In other words, this ifdef is pointless. At a guess it's a carry-over
> from pre-history.
> 
> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>

Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>

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

* Re: [PATCH 2/2] pseries/makefile: Remove CONFIG_PPC_PSERIES check
  2020-01-30  6:31 ` [PATCH 2/2] pseries/makefile: Remove CONFIG_PPC_PSERIES check Oliver O'Halloran
  2020-01-30  6:44   ` Oliver O'Halloran
@ 2020-01-31  0:39   ` Tyrel Datwyler
  1 sibling, 0 replies; 7+ messages in thread
From: Tyrel Datwyler @ 2020-01-31  0:39 UTC (permalink / raw)
  To: Oliver O'Halloran, linuxppc-dev

On 1/29/20 10:31 PM, Oliver O'Halloran wrote:
> The platform makefile (arch/powerpc/platforms/pseries/Makefile) is only
> included by the platform makefile (arch/powerpc/platform/Makefile) when
> CONFIG_PPC_PSERIES is selected, so checking for CONFIG_PPC_PSERIES in the
> pseries makefile is pointless.
> 
> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>

Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>

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

* Re: [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES
  2020-01-30  6:31 [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES Oliver O'Halloran
  2020-01-30  6:31 ` [PATCH 2/2] pseries/makefile: Remove CONFIG_PPC_PSERIES check Oliver O'Halloran
  2020-01-31  0:37 ` [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES Tyrel Datwyler
@ 2020-01-31 10:38 ` Michael Ellerman
  2020-03-06  0:27 ` Michael Ellerman
  3 siblings, 0 replies; 7+ messages in thread
From: Michael Ellerman @ 2020-01-31 10:38 UTC (permalink / raw)
  To: Oliver O'Halloran, linuxppc-dev; +Cc: Oliver O'Halloran

Subject: Re: [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES
                         ^
                         powerpc/

Please.

I'll fix it up.

Oliver O'Halloran <oohall@gmail.com> writes:
> vio.c requires CONFIG_IBMVIO which in turn depends on PPC_PSERIES.
> In other words, this ifdef is pointless.

And all of platforms/pseries is only built if PPC_PSERIES=y.

> At a guess it's a carry-over from pre-history.

It's not pre-history. Probably should have been cleaned up in:

commit b0787660260604ba63621881851de0032279819b
Author:     Stephen Rothwell <sfr@canb.auug.org.au>
AuthorDate: Wed Mar 7 18:43:10 2012 +0000
Commit:     Benjamin Herrenschmidt <benh@kernel.crashing.org>
CommitDate: Fri Mar 9 10:35:23 2012 +1100

    powerpc: clean up vio.c
    
    This cleans up vio.c after the removal of the legacy iSeries platform.
    It also removes some no longer referenced include files.
    
    Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>


cheers

> diff --git a/arch/powerpc/platforms/pseries/vio.c b/arch/powerpc/platforms/pseries/vio.c
> index f682b7b..37f1f25 100644
> --- a/arch/powerpc/platforms/pseries/vio.c
> +++ b/arch/powerpc/platforms/pseries/vio.c
> @@ -1628,7 +1628,6 @@ const void *vio_get_attribute(struct vio_dev *vdev, char *which, int *length)
>  }
>  EXPORT_SYMBOL(vio_get_attribute);
>  
> -#ifdef CONFIG_PPC_PSERIES
>  /* vio_find_name() - internal because only vio.c knows how we formatted the
>   * kobject name
>   */
> @@ -1698,7 +1697,6 @@ int vio_disable_interrupts(struct vio_dev *dev)
>  	return rc;
>  }
>  EXPORT_SYMBOL(vio_disable_interrupts);
> -#endif /* CONFIG_PPC_PSERIES */
>  
>  static int __init vio_init(void)
>  {
> -- 
> 2.9.5

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

* Re: [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES
  2020-01-30  6:31 [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES Oliver O'Halloran
                   ` (2 preceding siblings ...)
  2020-01-31 10:38 ` Michael Ellerman
@ 2020-03-06  0:27 ` Michael Ellerman
  3 siblings, 0 replies; 7+ messages in thread
From: Michael Ellerman @ 2020-03-06  0:27 UTC (permalink / raw)
  To: Oliver O'Halloran, linuxppc-dev; +Cc: Oliver O'Halloran

On Thu, 2020-01-30 at 06:31:52 UTC, Oliver O'Halloran wrote:
> vio.c requires CONFIG_IBMVIO which in turn depends on PPC_PSERIES.
> In other words, this ifdef is pointless. At a guess it's a carry-over
> from pre-history.
> 
> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>

Series applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/f98df5ed0a670f2c4c1a50d7901acbb862a247c7

cheers

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

end of thread, other threads:[~2020-03-06  0:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30  6:31 [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES Oliver O'Halloran
2020-01-30  6:31 ` [PATCH 2/2] pseries/makefile: Remove CONFIG_PPC_PSERIES check Oliver O'Halloran
2020-01-30  6:44   ` Oliver O'Halloran
2020-01-31  0:39   ` Tyrel Datwyler
2020-01-31  0:37 ` [PATCH 1/2] pseries/vio: Remove stray #ifdef CONFIG_PPC_PSERIES Tyrel Datwyler
2020-01-31 10:38 ` Michael Ellerman
2020-03-06  0:27 ` 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).