From: Oliver O'Halloran <oohall@gmail.com> Date: 2020-01-30 06:35:12
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(-)
@@ -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*kobjectname*/
From: Oliver O'Halloran <oohall@gmail.com> Date: 2020-01-30 06:33:36
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(-)
On Thu, Jan 30, 2020 at 5:32 PM Oliver O'Halloran [off-list ref] wrote:
The platform makefile (arch/powerpc/platforms/pseries/Makefile) is only
doh
s/platform/pseries/
quoted hunk
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(-)
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>
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>
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 [off-list ref]
AuthorDate: Wed Mar 7 18:43:10 2012 +0000
Commit: Benjamin Herrenschmidt [off-list ref]
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 [off-list ref]
Signed-off-by: Benjamin Herrenschmidt [off-list ref]
cheers
@@ -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*kobjectname*/
From: Michael Ellerman <hidden> Date: 2020-03-06 00:44:49
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>