[PATCH] powerpc: remove eeh warning

linas linas at austin.ibm.com
Thu Jan 12 07:49:37 EST 2006


Ack.
--linas

On Wed, Jan 11, 2006 at 02:02:58PM -0600, Olof Johansson was heard to remark:
Hi,

Paulus, please apply.

------

Remove warning in eeh code about mixed variables and code.

Signed-off-by: Olof Johansson <olof at lixom.net>
Acked-by: Linas Vepstas <linas at austin.ibm.com>

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




More information about the Linuxppc64-dev mailing list