patch-2.4.20 linux-2.4.20/drivers/md/raid1.c
Next file: linux-2.4.20/drivers/media/radio/Config.in
Previous file: linux-2.4.20/drivers/md/md.c
Back to the patch index
Back to the overall index
-  Lines: 19
-  Date:
Thu Nov 28 15:53:13 2002
-  Orig file: 
linux-2.4.19/drivers/md/raid1.c
-  Orig date: 
Fri Aug  2 17:39:44 2002
diff -urN linux-2.4.19/drivers/md/raid1.c linux-2.4.20/drivers/md/raid1.c
@@ -23,6 +23,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/config.h>
 #include <linux/slab.h>
 #include <linux/raid/raid1.h>
 #include <asm/atomic.h>
@@ -522,6 +523,10 @@
 	if (conf->sect_count >= conf->mirrors[new_disk].sect_limit) {
 		conf->sect_count = 0;
 
+#if defined(CONFIG_SPARC64) && (__GNUC__ == 2) && (__GNUC_MINOR__ == 92)
+		/* Work around a compiler bug in egcs-2.92.11 19980921 */
+		new_disk = *(volatile int *)&new_disk;
+#endif
 		do {
 			if (new_disk<=0)
 				new_disk = conf->raid_disks;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)