It fixes the problem at a negligible cost in size, but I much prefer
losing a few bytes of memory than to have different code for SMP or not
SMP.
Linus
----
--- v2.1.114/linux/include/asm-i386/spinlock.h Mon Aug 3 17:48:28 1998
+++ linux/include/asm-i386/spinlock.h Mon Aug 3 23:16:10 1998
@@ -10,8 +10,8 @@
/*
* Your basic spinlocks, allowing only a single CPU anywhere
*/
-typedef struct { } spinlock_t;
-#define SPIN_LOCK_UNLOCKED { }
+typedef struct { int gcc_is_bugggy; } spinlock_t;
+#define SPIN_LOCK_UNLOCKED { 0 }
#define spin_lock_init(lock) do { } while(0)
#define spin_lock(lock) do { } while(0)
-
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.altern.org/andrebalsa/doc/lkml-faq.html