[PATCH] powerpc: Fix compile warning in __eeh_mark_slot()

Michael Ellerman michael at ellerman.id.au
Sun Dec 4 17:28:05 EST 2005


Fix a compile warning the the powerpc.git tree:

arch/powerpc/platforms/pseries/eeh.c: In function `__eeh_mark_slot':
arch/powerpc/platforms/pseries/eeh.c:214: warning: ISO C90 forbids mixed declarations and code

Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
---

 arch/powerpc/platforms/pseries/eeh.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: kexec/arch/powerpc/platforms/pseries/eeh.c
===================================================================
--- kexec.orig/arch/powerpc/platforms/pseries/eeh.c
+++ kexec/arch/powerpc/platforms/pseries/eeh.c
@@ -208,10 +208,10 @@ static void __eeh_mark_slot (struct devi
 {
 	while (dn) {
 		if (PCI_DN(dn)) {
+			struct pci_dev *dev = PCI_DN(dn)->pcidev;
 			PCI_DN(dn)->eeh_mode |= mode_flag;
 
 			/* Mark the pci device driver too */
-			struct pci_dev *dev = PCI_DN(dn)->pcidev;
 			if (dev && dev->driver)
 				dev->error_state = pci_channel_io_frozen;
 



More information about the Linuxppc64-dev mailing list