[PATCH] Compile fixes for 2.4.0-test2

From: Richard Gooch (rgooch@ras.ucalgary.ca)
Date: Sat Jun 24 2000 - 13:22:21 EST


  Tired of your 2.4.0-test2 kernel not compiling, even though you're
using the recommended compiler and binutils? Or maybe you think
Documentation/Changes is out of date, but no-one from On High has
given a hint as to what you should be using?

Then look no further. This patch brings 2.4.0-test2 closer to
perfection.

And may all those who use the latest, bleeding-edge compilers and
binutils, and assume "All the world's a bleeding-edge
eeeegcs/binutils+++" drown in the spit of a thousand camels.

                                Regards,

                                        Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
===============================================================================
diff -urN linux-2.4.0-test2/include/asm-i386/processor.h linux/include/asm-i386/processor.h
--- linux-2.4.0-test2/include/asm-i386/processor.h Sat Jun 24 10:10:54 2000
+++ linux/include/asm-i386/processor.h Sat Jun 24 11:59:21 2000
@@ -125,8 +125,12 @@
                 (boot_cpu_data.x86_capability & X86_FEATURE_VME)
 #define cpu_has_fxsr \
                 (boot_cpu_data.x86_capability & X86_FEATURE_FXSR)
+#if 0 /* Someone decide which binutils are needed and update Documentation/Changes */
 #define cpu_has_xmm \
                 (boot_cpu_data.x86_capability & X86_FEATURE_XMM)
+#else
+#define cpu_has_xmm 0
+#endif
 
 extern char ignore_irq13;
 
diff -urN linux-2.4.0-test2/kernel/sched.c linux/kernel/sched.c
--- linux-2.4.0-test2/kernel/sched.c Wed Jun 21 16:58:06 2000
+++ linux/kernel/sched.c Sat Jun 24 10:09:55 2000
@@ -60,8 +60,8 @@
  * The run-queue lock locks the parts that actually access
  * and change the run-queues, and have to be interrupt-safe.
  */
-__cacheline_aligned spinlock_t runqueue_lock = SPIN_LOCK_UNLOCKED; /* second */
-__cacheline_aligned rwlock_t tasklist_lock = RW_LOCK_UNLOCKED; /* third */
+spinlock_t runqueue_lock __cacheline_aligned = SPIN_LOCK_UNLOCKED; /* second */
+rwlock_t tasklist_lock __cacheline_aligned = RW_LOCK_UNLOCKED; /* third */
 
 static LIST_HEAD(runqueue_head);
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:05 EST