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

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).