These warnings as the same as those resulting from building
2.5.73 with gcc-2.95, i.e., they are the result of gcc miscompiling
the empty structs that spinlocks reduce to on UP.
It's interesting to note that your Mandrake gcc-2.96 has this bug,
which previously was thought to be limited to gcc-2.95 and older.
Anyway, the fix is to revert patch-2.5.73's change to linux/spinlock.h.
The latest 2.5.73-bk includes the fix, or apply the patch below.
/Mikael
--- linux-2.5.73/include/linux/spinlock.h.~1~ 2003-06-23 13:07:39.000000000 +0200
+++ linux-2.5.73/include/linux/spinlock.h 2003-06-23 22:58:29.000000000 +0200
@@ -146,8 +146,13 @@
/*
* gcc versions before ~2.95 have a nasty bug with empty initializers.
*/
-typedef struct { } spinlock_t;
-#define SPIN_LOCK_UNLOCKED (spinlock_t) { }
+#if (__GNUC__ > 2)
+ typedef struct { } spinlock_t;
+ #define SPIN_LOCK_UNLOCKED (spinlock_t) { }
+#else
+ typedef struct { int gcc_is_buggy; } spinlock_t;
+ #define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 }
+#endif
/*
* If CONFIG_SMP is unset, declare the _raw_* definitions as nops
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/